1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/aiplatform/v1/endpoint.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A deployment of a Model. Endpoints contain one or more DeployedModels. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.aiplatform.v1.DeployedModel} 29 */ 30 public final class DeployedModel extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeployedModel) 33 DeployedModelOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use DeployedModel.newBuilder() to construct. DeployedModel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private DeployedModel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 DeployedModel()40 private DeployedModel() { 41 id_ = ""; 42 model_ = ""; 43 modelVersionId_ = ""; 44 displayName_ = ""; 45 serviceAccount_ = ""; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new DeployedModel(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.aiplatform.v1.EndpointProto 61 .internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return com.google.cloud.aiplatform.v1.EndpointProto 68 .internal_static_google_cloud_aiplatform_v1_DeployedModel_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloud.aiplatform.v1.DeployedModel.class, 71 com.google.cloud.aiplatform.v1.DeployedModel.Builder.class); 72 } 73 74 private int predictionResourcesCase_ = 0; 75 private java.lang.Object predictionResources_; 76 77 public enum PredictionResourcesCase 78 implements 79 com.google.protobuf.Internal.EnumLite, 80 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 81 DEDICATED_RESOURCES(7), 82 AUTOMATIC_RESOURCES(8), 83 PREDICTIONRESOURCES_NOT_SET(0); 84 private final int value; 85 PredictionResourcesCase(int value)86 private PredictionResourcesCase(int value) { 87 this.value = value; 88 } 89 /** 90 * @param value The number of the enum to look for. 91 * @return The enum associated with the given number. 92 * @deprecated Use {@link #forNumber(int)} instead. 93 */ 94 @java.lang.Deprecated valueOf(int value)95 public static PredictionResourcesCase valueOf(int value) { 96 return forNumber(value); 97 } 98 forNumber(int value)99 public static PredictionResourcesCase forNumber(int value) { 100 switch (value) { 101 case 7: 102 return DEDICATED_RESOURCES; 103 case 8: 104 return AUTOMATIC_RESOURCES; 105 case 0: 106 return PREDICTIONRESOURCES_NOT_SET; 107 default: 108 return null; 109 } 110 } 111 getNumber()112 public int getNumber() { 113 return this.value; 114 } 115 }; 116 getPredictionResourcesCase()117 public PredictionResourcesCase getPredictionResourcesCase() { 118 return PredictionResourcesCase.forNumber(predictionResourcesCase_); 119 } 120 121 public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 7; 122 /** 123 * 124 * 125 * <pre> 126 * A description of resources that are dedicated to the DeployedModel, and 127 * that need a higher degree of manual configuration. 128 * </pre> 129 * 130 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 131 * 132 * @return Whether the dedicatedResources field is set. 133 */ 134 @java.lang.Override hasDedicatedResources()135 public boolean hasDedicatedResources() { 136 return predictionResourcesCase_ == 7; 137 } 138 /** 139 * 140 * 141 * <pre> 142 * A description of resources that are dedicated to the DeployedModel, and 143 * that need a higher degree of manual configuration. 144 * </pre> 145 * 146 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 147 * 148 * @return The dedicatedResources. 149 */ 150 @java.lang.Override getDedicatedResources()151 public com.google.cloud.aiplatform.v1.DedicatedResources getDedicatedResources() { 152 if (predictionResourcesCase_ == 7) { 153 return (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_; 154 } 155 return com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 156 } 157 /** 158 * 159 * 160 * <pre> 161 * A description of resources that are dedicated to the DeployedModel, and 162 * that need a higher degree of manual configuration. 163 * </pre> 164 * 165 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 166 */ 167 @java.lang.Override 168 public com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder()169 getDedicatedResourcesOrBuilder() { 170 if (predictionResourcesCase_ == 7) { 171 return (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_; 172 } 173 return com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 174 } 175 176 public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 8; 177 /** 178 * 179 * 180 * <pre> 181 * A description of resources that to large degree are decided by Vertex 182 * AI, and require only a modest additional configuration. 183 * </pre> 184 * 185 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 186 * 187 * @return Whether the automaticResources field is set. 188 */ 189 @java.lang.Override hasAutomaticResources()190 public boolean hasAutomaticResources() { 191 return predictionResourcesCase_ == 8; 192 } 193 /** 194 * 195 * 196 * <pre> 197 * A description of resources that to large degree are decided by Vertex 198 * AI, and require only a modest additional configuration. 199 * </pre> 200 * 201 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 202 * 203 * @return The automaticResources. 204 */ 205 @java.lang.Override getAutomaticResources()206 public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() { 207 if (predictionResourcesCase_ == 8) { 208 return (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_; 209 } 210 return com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 211 } 212 /** 213 * 214 * 215 * <pre> 216 * A description of resources that to large degree are decided by Vertex 217 * AI, and require only a modest additional configuration. 218 * </pre> 219 * 220 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 221 */ 222 @java.lang.Override 223 public com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder()224 getAutomaticResourcesOrBuilder() { 225 if (predictionResourcesCase_ == 8) { 226 return (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_; 227 } 228 return com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 229 } 230 231 public static final int ID_FIELD_NUMBER = 1; 232 233 @SuppressWarnings("serial") 234 private volatile java.lang.Object id_ = ""; 235 /** 236 * 237 * 238 * <pre> 239 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 240 * Vertex AI will generate a value for this ID. 241 * This value should be 1-10 characters, and valid characters are /[0-9]/. 242 * </pre> 243 * 244 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 245 * 246 * @return The id. 247 */ 248 @java.lang.Override getId()249 public java.lang.String getId() { 250 java.lang.Object ref = id_; 251 if (ref instanceof java.lang.String) { 252 return (java.lang.String) ref; 253 } else { 254 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 255 java.lang.String s = bs.toStringUtf8(); 256 id_ = s; 257 return s; 258 } 259 } 260 /** 261 * 262 * 263 * <pre> 264 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 265 * Vertex AI will generate a value for this ID. 266 * This value should be 1-10 characters, and valid characters are /[0-9]/. 267 * </pre> 268 * 269 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 270 * 271 * @return The bytes for id. 272 */ 273 @java.lang.Override getIdBytes()274 public com.google.protobuf.ByteString getIdBytes() { 275 java.lang.Object ref = id_; 276 if (ref instanceof java.lang.String) { 277 com.google.protobuf.ByteString b = 278 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 279 id_ = b; 280 return b; 281 } else { 282 return (com.google.protobuf.ByteString) ref; 283 } 284 } 285 286 public static final int MODEL_FIELD_NUMBER = 2; 287 288 @SuppressWarnings("serial") 289 private volatile java.lang.Object model_ = ""; 290 /** 291 * 292 * 293 * <pre> 294 * Required. The resource name of the Model that this is the deployment of. 295 * Note that the Model may be in a different location than the DeployedModel's 296 * Endpoint. 297 * The resource name may contain version id or version alias to specify the 298 * version. 299 * Example: `projects/{project}/locations/{location}/models/{model}@2` 300 * or 301 * `projects/{project}/locations/{location}/models/{model}@golden` 302 * if no version is specified, the default version will be deployed. 303 * </pre> 304 * 305 * <code> 306 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 307 * </code> 308 * 309 * @return The model. 310 */ 311 @java.lang.Override getModel()312 public java.lang.String getModel() { 313 java.lang.Object ref = model_; 314 if (ref instanceof java.lang.String) { 315 return (java.lang.String) ref; 316 } else { 317 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 318 java.lang.String s = bs.toStringUtf8(); 319 model_ = s; 320 return s; 321 } 322 } 323 /** 324 * 325 * 326 * <pre> 327 * Required. The resource name of the Model that this is the deployment of. 328 * Note that the Model may be in a different location than the DeployedModel's 329 * Endpoint. 330 * The resource name may contain version id or version alias to specify the 331 * version. 332 * Example: `projects/{project}/locations/{location}/models/{model}@2` 333 * or 334 * `projects/{project}/locations/{location}/models/{model}@golden` 335 * if no version is specified, the default version will be deployed. 336 * </pre> 337 * 338 * <code> 339 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 340 * </code> 341 * 342 * @return The bytes for model. 343 */ 344 @java.lang.Override getModelBytes()345 public com.google.protobuf.ByteString getModelBytes() { 346 java.lang.Object ref = model_; 347 if (ref instanceof java.lang.String) { 348 com.google.protobuf.ByteString b = 349 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 350 model_ = b; 351 return b; 352 } else { 353 return (com.google.protobuf.ByteString) ref; 354 } 355 } 356 357 public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18; 358 359 @SuppressWarnings("serial") 360 private volatile java.lang.Object modelVersionId_ = ""; 361 /** 362 * 363 * 364 * <pre> 365 * Output only. The version ID of the model that is deployed. 366 * </pre> 367 * 368 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 369 * 370 * @return The modelVersionId. 371 */ 372 @java.lang.Override getModelVersionId()373 public java.lang.String getModelVersionId() { 374 java.lang.Object ref = modelVersionId_; 375 if (ref instanceof java.lang.String) { 376 return (java.lang.String) ref; 377 } else { 378 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 379 java.lang.String s = bs.toStringUtf8(); 380 modelVersionId_ = s; 381 return s; 382 } 383 } 384 /** 385 * 386 * 387 * <pre> 388 * Output only. The version ID of the model that is deployed. 389 * </pre> 390 * 391 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 392 * 393 * @return The bytes for modelVersionId. 394 */ 395 @java.lang.Override getModelVersionIdBytes()396 public com.google.protobuf.ByteString getModelVersionIdBytes() { 397 java.lang.Object ref = modelVersionId_; 398 if (ref instanceof java.lang.String) { 399 com.google.protobuf.ByteString b = 400 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 401 modelVersionId_ = b; 402 return b; 403 } else { 404 return (com.google.protobuf.ByteString) ref; 405 } 406 } 407 408 public static final int DISPLAY_NAME_FIELD_NUMBER = 3; 409 410 @SuppressWarnings("serial") 411 private volatile java.lang.Object displayName_ = ""; 412 /** 413 * 414 * 415 * <pre> 416 * The display name of the DeployedModel. If not provided upon creation, 417 * the Model's display_name is used. 418 * </pre> 419 * 420 * <code>string display_name = 3;</code> 421 * 422 * @return The displayName. 423 */ 424 @java.lang.Override getDisplayName()425 public java.lang.String getDisplayName() { 426 java.lang.Object ref = displayName_; 427 if (ref instanceof java.lang.String) { 428 return (java.lang.String) ref; 429 } else { 430 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 431 java.lang.String s = bs.toStringUtf8(); 432 displayName_ = s; 433 return s; 434 } 435 } 436 /** 437 * 438 * 439 * <pre> 440 * The display name of the DeployedModel. If not provided upon creation, 441 * the Model's display_name is used. 442 * </pre> 443 * 444 * <code>string display_name = 3;</code> 445 * 446 * @return The bytes for displayName. 447 */ 448 @java.lang.Override getDisplayNameBytes()449 public com.google.protobuf.ByteString getDisplayNameBytes() { 450 java.lang.Object ref = displayName_; 451 if (ref instanceof java.lang.String) { 452 com.google.protobuf.ByteString b = 453 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 454 displayName_ = b; 455 return b; 456 } else { 457 return (com.google.protobuf.ByteString) ref; 458 } 459 } 460 461 public static final int CREATE_TIME_FIELD_NUMBER = 6; 462 private com.google.protobuf.Timestamp createTime_; 463 /** 464 * 465 * 466 * <pre> 467 * Output only. Timestamp when the DeployedModel was created. 468 * </pre> 469 * 470 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 471 * </code> 472 * 473 * @return Whether the createTime field is set. 474 */ 475 @java.lang.Override hasCreateTime()476 public boolean hasCreateTime() { 477 return createTime_ != null; 478 } 479 /** 480 * 481 * 482 * <pre> 483 * Output only. Timestamp when the DeployedModel was created. 484 * </pre> 485 * 486 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 487 * </code> 488 * 489 * @return The createTime. 490 */ 491 @java.lang.Override getCreateTime()492 public com.google.protobuf.Timestamp getCreateTime() { 493 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 494 } 495 /** 496 * 497 * 498 * <pre> 499 * Output only. Timestamp when the DeployedModel was created. 500 * </pre> 501 * 502 * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 503 * </code> 504 */ 505 @java.lang.Override getCreateTimeOrBuilder()506 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 507 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 508 } 509 510 public static final int EXPLANATION_SPEC_FIELD_NUMBER = 9; 511 private com.google.cloud.aiplatform.v1.ExplanationSpec explanationSpec_; 512 /** 513 * 514 * 515 * <pre> 516 * Explanation configuration for this DeployedModel. 517 * When deploying a Model using 518 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 519 * this value overrides the value of 520 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 521 * All fields of 522 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 523 * are optional in the request. If a field of 524 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 525 * is not populated, the value of the same field of 526 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 527 * is inherited. If the corresponding 528 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 529 * is not populated, all fields of the 530 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 531 * will be used for the explanation configuration. 532 * </pre> 533 * 534 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 535 * 536 * @return Whether the explanationSpec field is set. 537 */ 538 @java.lang.Override hasExplanationSpec()539 public boolean hasExplanationSpec() { 540 return explanationSpec_ != null; 541 } 542 /** 543 * 544 * 545 * <pre> 546 * Explanation configuration for this DeployedModel. 547 * When deploying a Model using 548 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 549 * this value overrides the value of 550 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 551 * All fields of 552 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 553 * are optional in the request. If a field of 554 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 555 * is not populated, the value of the same field of 556 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 557 * is inherited. If the corresponding 558 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 559 * is not populated, all fields of the 560 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 561 * will be used for the explanation configuration. 562 * </pre> 563 * 564 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 565 * 566 * @return The explanationSpec. 567 */ 568 @java.lang.Override getExplanationSpec()569 public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { 570 return explanationSpec_ == null 571 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 572 : explanationSpec_; 573 } 574 /** 575 * 576 * 577 * <pre> 578 * Explanation configuration for this DeployedModel. 579 * When deploying a Model using 580 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 581 * this value overrides the value of 582 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 583 * All fields of 584 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 585 * are optional in the request. If a field of 586 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 587 * is not populated, the value of the same field of 588 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 589 * is inherited. If the corresponding 590 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 591 * is not populated, all fields of the 592 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 593 * will be used for the explanation configuration. 594 * </pre> 595 * 596 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 597 */ 598 @java.lang.Override getExplanationSpecOrBuilder()599 public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { 600 return explanationSpec_ == null 601 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 602 : explanationSpec_; 603 } 604 605 public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11; 606 607 @SuppressWarnings("serial") 608 private volatile java.lang.Object serviceAccount_ = ""; 609 /** 610 * 611 * 612 * <pre> 613 * The service account that the DeployedModel's container runs as. Specify the 614 * email address of the service account. If this service account is not 615 * specified, the container runs as a service account that doesn't have access 616 * to the resource project. 617 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 618 * permission on this service account. 619 * </pre> 620 * 621 * <code>string service_account = 11;</code> 622 * 623 * @return The serviceAccount. 624 */ 625 @java.lang.Override getServiceAccount()626 public java.lang.String getServiceAccount() { 627 java.lang.Object ref = serviceAccount_; 628 if (ref instanceof java.lang.String) { 629 return (java.lang.String) ref; 630 } else { 631 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 632 java.lang.String s = bs.toStringUtf8(); 633 serviceAccount_ = s; 634 return s; 635 } 636 } 637 /** 638 * 639 * 640 * <pre> 641 * The service account that the DeployedModel's container runs as. Specify the 642 * email address of the service account. If this service account is not 643 * specified, the container runs as a service account that doesn't have access 644 * to the resource project. 645 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 646 * permission on this service account. 647 * </pre> 648 * 649 * <code>string service_account = 11;</code> 650 * 651 * @return The bytes for serviceAccount. 652 */ 653 @java.lang.Override getServiceAccountBytes()654 public com.google.protobuf.ByteString getServiceAccountBytes() { 655 java.lang.Object ref = serviceAccount_; 656 if (ref instanceof java.lang.String) { 657 com.google.protobuf.ByteString b = 658 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 659 serviceAccount_ = b; 660 return b; 661 } else { 662 return (com.google.protobuf.ByteString) ref; 663 } 664 } 665 666 public static final int DISABLE_CONTAINER_LOGGING_FIELD_NUMBER = 15; 667 private boolean disableContainerLogging_ = false; 668 /** 669 * 670 * 671 * <pre> 672 * For custom-trained Models and AutoML Tabular Models, the container of the 673 * DeployedModel instances will send `stderr` and `stdout` streams to 674 * Cloud Logging by default. Please note that the logs incur cost, 675 * which are subject to [Cloud Logging 676 * pricing](https://cloud.google.com/logging/pricing). 677 * User can disable container logging by setting this flag to true. 678 * </pre> 679 * 680 * <code>bool disable_container_logging = 15;</code> 681 * 682 * @return The disableContainerLogging. 683 */ 684 @java.lang.Override getDisableContainerLogging()685 public boolean getDisableContainerLogging() { 686 return disableContainerLogging_; 687 } 688 689 public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 13; 690 private boolean enableAccessLogging_ = false; 691 /** 692 * 693 * 694 * <pre> 695 * If true, online prediction access logs are sent to Cloud 696 * Logging. 697 * These logs are like standard server access logs, containing 698 * information like timestamp and latency for each prediction request. 699 * Note that logs may incur a cost, especially if your project 700 * receives prediction requests at a high queries per second rate (QPS). 701 * Estimate your costs before enabling this option. 702 * </pre> 703 * 704 * <code>bool enable_access_logging = 13;</code> 705 * 706 * @return The enableAccessLogging. 707 */ 708 @java.lang.Override getEnableAccessLogging()709 public boolean getEnableAccessLogging() { 710 return enableAccessLogging_; 711 } 712 713 public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 14; 714 private com.google.cloud.aiplatform.v1.PrivateEndpoints privateEndpoints_; 715 /** 716 * 717 * 718 * <pre> 719 * Output only. Provide paths for users to send predict/explain/health 720 * requests directly to the deployed model services running on Cloud via 721 * private services access. This field is populated if 722 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 723 * </pre> 724 * 725 * <code> 726 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 727 * </code> 728 * 729 * @return Whether the privateEndpoints field is set. 730 */ 731 @java.lang.Override hasPrivateEndpoints()732 public boolean hasPrivateEndpoints() { 733 return privateEndpoints_ != null; 734 } 735 /** 736 * 737 * 738 * <pre> 739 * Output only. Provide paths for users to send predict/explain/health 740 * requests directly to the deployed model services running on Cloud via 741 * private services access. This field is populated if 742 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 743 * </pre> 744 * 745 * <code> 746 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 747 * </code> 748 * 749 * @return The privateEndpoints. 750 */ 751 @java.lang.Override getPrivateEndpoints()752 public com.google.cloud.aiplatform.v1.PrivateEndpoints getPrivateEndpoints() { 753 return privateEndpoints_ == null 754 ? com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance() 755 : privateEndpoints_; 756 } 757 /** 758 * 759 * 760 * <pre> 761 * Output only. Provide paths for users to send predict/explain/health 762 * requests directly to the deployed model services running on Cloud via 763 * private services access. This field is populated if 764 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 765 * </pre> 766 * 767 * <code> 768 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 769 * </code> 770 */ 771 @java.lang.Override getPrivateEndpointsOrBuilder()772 public com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { 773 return privateEndpoints_ == null 774 ? com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance() 775 : privateEndpoints_; 776 } 777 778 private byte memoizedIsInitialized = -1; 779 780 @java.lang.Override isInitialized()781 public final boolean isInitialized() { 782 byte isInitialized = memoizedIsInitialized; 783 if (isInitialized == 1) return true; 784 if (isInitialized == 0) return false; 785 786 memoizedIsInitialized = 1; 787 return true; 788 } 789 790 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)791 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 792 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 793 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); 794 } 795 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { 796 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); 797 } 798 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 799 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); 800 } 801 if (createTime_ != null) { 802 output.writeMessage(6, getCreateTime()); 803 } 804 if (predictionResourcesCase_ == 7) { 805 output.writeMessage( 806 7, (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_); 807 } 808 if (predictionResourcesCase_ == 8) { 809 output.writeMessage( 810 8, (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_); 811 } 812 if (explanationSpec_ != null) { 813 output.writeMessage(9, getExplanationSpec()); 814 } 815 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 816 com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccount_); 817 } 818 if (enableAccessLogging_ != false) { 819 output.writeBool(13, enableAccessLogging_); 820 } 821 if (privateEndpoints_ != null) { 822 output.writeMessage(14, getPrivateEndpoints()); 823 } 824 if (disableContainerLogging_ != false) { 825 output.writeBool(15, disableContainerLogging_); 826 } 827 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { 828 com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_); 829 } 830 getUnknownFields().writeTo(output); 831 } 832 833 @java.lang.Override getSerializedSize()834 public int getSerializedSize() { 835 int size = memoizedSize; 836 if (size != -1) return size; 837 838 size = 0; 839 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 840 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); 841 } 842 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { 843 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); 844 } 845 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 846 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); 847 } 848 if (createTime_ != null) { 849 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); 850 } 851 if (predictionResourcesCase_ == 7) { 852 size += 853 com.google.protobuf.CodedOutputStream.computeMessageSize( 854 7, (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_); 855 } 856 if (predictionResourcesCase_ == 8) { 857 size += 858 com.google.protobuf.CodedOutputStream.computeMessageSize( 859 8, (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_); 860 } 861 if (explanationSpec_ != null) { 862 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExplanationSpec()); 863 } 864 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 865 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccount_); 866 } 867 if (enableAccessLogging_ != false) { 868 size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableAccessLogging_); 869 } 870 if (privateEndpoints_ != null) { 871 size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints()); 872 } 873 if (disableContainerLogging_ != false) { 874 size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, disableContainerLogging_); 875 } 876 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { 877 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelVersionId_); 878 } 879 size += getUnknownFields().getSerializedSize(); 880 memoizedSize = size; 881 return size; 882 } 883 884 @java.lang.Override equals(final java.lang.Object obj)885 public boolean equals(final java.lang.Object obj) { 886 if (obj == this) { 887 return true; 888 } 889 if (!(obj instanceof com.google.cloud.aiplatform.v1.DeployedModel)) { 890 return super.equals(obj); 891 } 892 com.google.cloud.aiplatform.v1.DeployedModel other = 893 (com.google.cloud.aiplatform.v1.DeployedModel) obj; 894 895 if (!getId().equals(other.getId())) return false; 896 if (!getModel().equals(other.getModel())) return false; 897 if (!getModelVersionId().equals(other.getModelVersionId())) return false; 898 if (!getDisplayName().equals(other.getDisplayName())) return false; 899 if (hasCreateTime() != other.hasCreateTime()) return false; 900 if (hasCreateTime()) { 901 if (!getCreateTime().equals(other.getCreateTime())) return false; 902 } 903 if (hasExplanationSpec() != other.hasExplanationSpec()) return false; 904 if (hasExplanationSpec()) { 905 if (!getExplanationSpec().equals(other.getExplanationSpec())) return false; 906 } 907 if (!getServiceAccount().equals(other.getServiceAccount())) return false; 908 if (getDisableContainerLogging() != other.getDisableContainerLogging()) return false; 909 if (getEnableAccessLogging() != other.getEnableAccessLogging()) return false; 910 if (hasPrivateEndpoints() != other.hasPrivateEndpoints()) return false; 911 if (hasPrivateEndpoints()) { 912 if (!getPrivateEndpoints().equals(other.getPrivateEndpoints())) return false; 913 } 914 if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false; 915 switch (predictionResourcesCase_) { 916 case 7: 917 if (!getDedicatedResources().equals(other.getDedicatedResources())) return false; 918 break; 919 case 8: 920 if (!getAutomaticResources().equals(other.getAutomaticResources())) return false; 921 break; 922 case 0: 923 default: 924 } 925 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 926 return true; 927 } 928 929 @java.lang.Override hashCode()930 public int hashCode() { 931 if (memoizedHashCode != 0) { 932 return memoizedHashCode; 933 } 934 int hash = 41; 935 hash = (19 * hash) + getDescriptor().hashCode(); 936 hash = (37 * hash) + ID_FIELD_NUMBER; 937 hash = (53 * hash) + getId().hashCode(); 938 hash = (37 * hash) + MODEL_FIELD_NUMBER; 939 hash = (53 * hash) + getModel().hashCode(); 940 hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; 941 hash = (53 * hash) + getModelVersionId().hashCode(); 942 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 943 hash = (53 * hash) + getDisplayName().hashCode(); 944 if (hasCreateTime()) { 945 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 946 hash = (53 * hash) + getCreateTime().hashCode(); 947 } 948 if (hasExplanationSpec()) { 949 hash = (37 * hash) + EXPLANATION_SPEC_FIELD_NUMBER; 950 hash = (53 * hash) + getExplanationSpec().hashCode(); 951 } 952 hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; 953 hash = (53 * hash) + getServiceAccount().hashCode(); 954 hash = (37 * hash) + DISABLE_CONTAINER_LOGGING_FIELD_NUMBER; 955 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableContainerLogging()); 956 hash = (37 * hash) + ENABLE_ACCESS_LOGGING_FIELD_NUMBER; 957 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAccessLogging()); 958 if (hasPrivateEndpoints()) { 959 hash = (37 * hash) + PRIVATE_ENDPOINTS_FIELD_NUMBER; 960 hash = (53 * hash) + getPrivateEndpoints().hashCode(); 961 } 962 switch (predictionResourcesCase_) { 963 case 7: 964 hash = (37 * hash) + DEDICATED_RESOURCES_FIELD_NUMBER; 965 hash = (53 * hash) + getDedicatedResources().hashCode(); 966 break; 967 case 8: 968 hash = (37 * hash) + AUTOMATIC_RESOURCES_FIELD_NUMBER; 969 hash = (53 * hash) + getAutomaticResources().hashCode(); 970 break; 971 case 0: 972 default: 973 } 974 hash = (29 * hash) + getUnknownFields().hashCode(); 975 memoizedHashCode = hash; 976 return hash; 977 } 978 parseFrom(java.nio.ByteBuffer data)979 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom(java.nio.ByteBuffer data) 980 throws com.google.protobuf.InvalidProtocolBufferException { 981 return PARSER.parseFrom(data); 982 } 983 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)984 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 985 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 986 throws com.google.protobuf.InvalidProtocolBufferException { 987 return PARSER.parseFrom(data, extensionRegistry); 988 } 989 parseFrom( com.google.protobuf.ByteString data)990 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 991 com.google.protobuf.ByteString data) 992 throws com.google.protobuf.InvalidProtocolBufferException { 993 return PARSER.parseFrom(data); 994 } 995 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)996 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 997 com.google.protobuf.ByteString data, 998 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 999 throws com.google.protobuf.InvalidProtocolBufferException { 1000 return PARSER.parseFrom(data, extensionRegistry); 1001 } 1002 parseFrom(byte[] data)1003 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom(byte[] data) 1004 throws com.google.protobuf.InvalidProtocolBufferException { 1005 return PARSER.parseFrom(data); 1006 } 1007 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1008 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 1009 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1010 throws com.google.protobuf.InvalidProtocolBufferException { 1011 return PARSER.parseFrom(data, extensionRegistry); 1012 } 1013 parseFrom(java.io.InputStream input)1014 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom(java.io.InputStream input) 1015 throws java.io.IOException { 1016 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1017 } 1018 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1019 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 1020 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1021 throws java.io.IOException { 1022 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1023 PARSER, input, extensionRegistry); 1024 } 1025 parseDelimitedFrom( java.io.InputStream input)1026 public static com.google.cloud.aiplatform.v1.DeployedModel parseDelimitedFrom( 1027 java.io.InputStream input) throws java.io.IOException { 1028 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1029 } 1030 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1031 public static com.google.cloud.aiplatform.v1.DeployedModel parseDelimitedFrom( 1032 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1033 throws java.io.IOException { 1034 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1035 PARSER, input, extensionRegistry); 1036 } 1037 parseFrom( com.google.protobuf.CodedInputStream input)1038 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 1039 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1040 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1041 } 1042 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1043 public static com.google.cloud.aiplatform.v1.DeployedModel parseFrom( 1044 com.google.protobuf.CodedInputStream input, 1045 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1046 throws java.io.IOException { 1047 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1048 PARSER, input, extensionRegistry); 1049 } 1050 1051 @java.lang.Override newBuilderForType()1052 public Builder newBuilderForType() { 1053 return newBuilder(); 1054 } 1055 newBuilder()1056 public static Builder newBuilder() { 1057 return DEFAULT_INSTANCE.toBuilder(); 1058 } 1059 newBuilder(com.google.cloud.aiplatform.v1.DeployedModel prototype)1060 public static Builder newBuilder(com.google.cloud.aiplatform.v1.DeployedModel prototype) { 1061 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1062 } 1063 1064 @java.lang.Override toBuilder()1065 public Builder toBuilder() { 1066 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1067 } 1068 1069 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1070 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1071 Builder builder = new Builder(parent); 1072 return builder; 1073 } 1074 /** 1075 * 1076 * 1077 * <pre> 1078 * A deployment of a Model. Endpoints contain one or more DeployedModels. 1079 * </pre> 1080 * 1081 * Protobuf type {@code google.cloud.aiplatform.v1.DeployedModel} 1082 */ 1083 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1084 implements 1085 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeployedModel) 1086 com.google.cloud.aiplatform.v1.DeployedModelOrBuilder { getDescriptor()1087 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1088 return com.google.cloud.aiplatform.v1.EndpointProto 1089 .internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor; 1090 } 1091 1092 @java.lang.Override 1093 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1094 internalGetFieldAccessorTable() { 1095 return com.google.cloud.aiplatform.v1.EndpointProto 1096 .internal_static_google_cloud_aiplatform_v1_DeployedModel_fieldAccessorTable 1097 .ensureFieldAccessorsInitialized( 1098 com.google.cloud.aiplatform.v1.DeployedModel.class, 1099 com.google.cloud.aiplatform.v1.DeployedModel.Builder.class); 1100 } 1101 1102 // Construct using com.google.cloud.aiplatform.v1.DeployedModel.newBuilder() Builder()1103 private Builder() {} 1104 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1105 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1106 super(parent); 1107 } 1108 1109 @java.lang.Override clear()1110 public Builder clear() { 1111 super.clear(); 1112 bitField0_ = 0; 1113 if (dedicatedResourcesBuilder_ != null) { 1114 dedicatedResourcesBuilder_.clear(); 1115 } 1116 if (automaticResourcesBuilder_ != null) { 1117 automaticResourcesBuilder_.clear(); 1118 } 1119 id_ = ""; 1120 model_ = ""; 1121 modelVersionId_ = ""; 1122 displayName_ = ""; 1123 createTime_ = null; 1124 if (createTimeBuilder_ != null) { 1125 createTimeBuilder_.dispose(); 1126 createTimeBuilder_ = null; 1127 } 1128 explanationSpec_ = null; 1129 if (explanationSpecBuilder_ != null) { 1130 explanationSpecBuilder_.dispose(); 1131 explanationSpecBuilder_ = null; 1132 } 1133 serviceAccount_ = ""; 1134 disableContainerLogging_ = false; 1135 enableAccessLogging_ = false; 1136 privateEndpoints_ = null; 1137 if (privateEndpointsBuilder_ != null) { 1138 privateEndpointsBuilder_.dispose(); 1139 privateEndpointsBuilder_ = null; 1140 } 1141 predictionResourcesCase_ = 0; 1142 predictionResources_ = null; 1143 return this; 1144 } 1145 1146 @java.lang.Override getDescriptorForType()1147 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1148 return com.google.cloud.aiplatform.v1.EndpointProto 1149 .internal_static_google_cloud_aiplatform_v1_DeployedModel_descriptor; 1150 } 1151 1152 @java.lang.Override getDefaultInstanceForType()1153 public com.google.cloud.aiplatform.v1.DeployedModel getDefaultInstanceForType() { 1154 return com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance(); 1155 } 1156 1157 @java.lang.Override build()1158 public com.google.cloud.aiplatform.v1.DeployedModel build() { 1159 com.google.cloud.aiplatform.v1.DeployedModel result = buildPartial(); 1160 if (!result.isInitialized()) { 1161 throw newUninitializedMessageException(result); 1162 } 1163 return result; 1164 } 1165 1166 @java.lang.Override buildPartial()1167 public com.google.cloud.aiplatform.v1.DeployedModel buildPartial() { 1168 com.google.cloud.aiplatform.v1.DeployedModel result = 1169 new com.google.cloud.aiplatform.v1.DeployedModel(this); 1170 if (bitField0_ != 0) { 1171 buildPartial0(result); 1172 } 1173 buildPartialOneofs(result); 1174 onBuilt(); 1175 return result; 1176 } 1177 buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel result)1178 private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel result) { 1179 int from_bitField0_ = bitField0_; 1180 if (((from_bitField0_ & 0x00000004) != 0)) { 1181 result.id_ = id_; 1182 } 1183 if (((from_bitField0_ & 0x00000008) != 0)) { 1184 result.model_ = model_; 1185 } 1186 if (((from_bitField0_ & 0x00000010) != 0)) { 1187 result.modelVersionId_ = modelVersionId_; 1188 } 1189 if (((from_bitField0_ & 0x00000020) != 0)) { 1190 result.displayName_ = displayName_; 1191 } 1192 if (((from_bitField0_ & 0x00000040) != 0)) { 1193 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 1194 } 1195 if (((from_bitField0_ & 0x00000080) != 0)) { 1196 result.explanationSpec_ = 1197 explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); 1198 } 1199 if (((from_bitField0_ & 0x00000100) != 0)) { 1200 result.serviceAccount_ = serviceAccount_; 1201 } 1202 if (((from_bitField0_ & 0x00000200) != 0)) { 1203 result.disableContainerLogging_ = disableContainerLogging_; 1204 } 1205 if (((from_bitField0_ & 0x00000400) != 0)) { 1206 result.enableAccessLogging_ = enableAccessLogging_; 1207 } 1208 if (((from_bitField0_ & 0x00000800) != 0)) { 1209 result.privateEndpoints_ = 1210 privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); 1211 } 1212 } 1213 buildPartialOneofs(com.google.cloud.aiplatform.v1.DeployedModel result)1214 private void buildPartialOneofs(com.google.cloud.aiplatform.v1.DeployedModel result) { 1215 result.predictionResourcesCase_ = predictionResourcesCase_; 1216 result.predictionResources_ = this.predictionResources_; 1217 if (predictionResourcesCase_ == 7 && dedicatedResourcesBuilder_ != null) { 1218 result.predictionResources_ = dedicatedResourcesBuilder_.build(); 1219 } 1220 if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) { 1221 result.predictionResources_ = automaticResourcesBuilder_.build(); 1222 } 1223 } 1224 1225 @java.lang.Override clone()1226 public Builder clone() { 1227 return super.clone(); 1228 } 1229 1230 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1231 public Builder setField( 1232 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1233 return super.setField(field, value); 1234 } 1235 1236 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1237 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1238 return super.clearField(field); 1239 } 1240 1241 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1242 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1243 return super.clearOneof(oneof); 1244 } 1245 1246 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1247 public Builder setRepeatedField( 1248 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1249 return super.setRepeatedField(field, index, value); 1250 } 1251 1252 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1253 public Builder addRepeatedField( 1254 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1255 return super.addRepeatedField(field, value); 1256 } 1257 1258 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1259 public Builder mergeFrom(com.google.protobuf.Message other) { 1260 if (other instanceof com.google.cloud.aiplatform.v1.DeployedModel) { 1261 return mergeFrom((com.google.cloud.aiplatform.v1.DeployedModel) other); 1262 } else { 1263 super.mergeFrom(other); 1264 return this; 1265 } 1266 } 1267 mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other)1268 public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other) { 1269 if (other == com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance()) return this; 1270 if (!other.getId().isEmpty()) { 1271 id_ = other.id_; 1272 bitField0_ |= 0x00000004; 1273 onChanged(); 1274 } 1275 if (!other.getModel().isEmpty()) { 1276 model_ = other.model_; 1277 bitField0_ |= 0x00000008; 1278 onChanged(); 1279 } 1280 if (!other.getModelVersionId().isEmpty()) { 1281 modelVersionId_ = other.modelVersionId_; 1282 bitField0_ |= 0x00000010; 1283 onChanged(); 1284 } 1285 if (!other.getDisplayName().isEmpty()) { 1286 displayName_ = other.displayName_; 1287 bitField0_ |= 0x00000020; 1288 onChanged(); 1289 } 1290 if (other.hasCreateTime()) { 1291 mergeCreateTime(other.getCreateTime()); 1292 } 1293 if (other.hasExplanationSpec()) { 1294 mergeExplanationSpec(other.getExplanationSpec()); 1295 } 1296 if (!other.getServiceAccount().isEmpty()) { 1297 serviceAccount_ = other.serviceAccount_; 1298 bitField0_ |= 0x00000100; 1299 onChanged(); 1300 } 1301 if (other.getDisableContainerLogging() != false) { 1302 setDisableContainerLogging(other.getDisableContainerLogging()); 1303 } 1304 if (other.getEnableAccessLogging() != false) { 1305 setEnableAccessLogging(other.getEnableAccessLogging()); 1306 } 1307 if (other.hasPrivateEndpoints()) { 1308 mergePrivateEndpoints(other.getPrivateEndpoints()); 1309 } 1310 switch (other.getPredictionResourcesCase()) { 1311 case DEDICATED_RESOURCES: 1312 { 1313 mergeDedicatedResources(other.getDedicatedResources()); 1314 break; 1315 } 1316 case AUTOMATIC_RESOURCES: 1317 { 1318 mergeAutomaticResources(other.getAutomaticResources()); 1319 break; 1320 } 1321 case PREDICTIONRESOURCES_NOT_SET: 1322 { 1323 break; 1324 } 1325 } 1326 this.mergeUnknownFields(other.getUnknownFields()); 1327 onChanged(); 1328 return this; 1329 } 1330 1331 @java.lang.Override isInitialized()1332 public final boolean isInitialized() { 1333 return true; 1334 } 1335 1336 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1337 public Builder mergeFrom( 1338 com.google.protobuf.CodedInputStream input, 1339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1340 throws java.io.IOException { 1341 if (extensionRegistry == null) { 1342 throw new java.lang.NullPointerException(); 1343 } 1344 try { 1345 boolean done = false; 1346 while (!done) { 1347 int tag = input.readTag(); 1348 switch (tag) { 1349 case 0: 1350 done = true; 1351 break; 1352 case 10: 1353 { 1354 id_ = input.readStringRequireUtf8(); 1355 bitField0_ |= 0x00000004; 1356 break; 1357 } // case 10 1358 case 18: 1359 { 1360 model_ = input.readStringRequireUtf8(); 1361 bitField0_ |= 0x00000008; 1362 break; 1363 } // case 18 1364 case 26: 1365 { 1366 displayName_ = input.readStringRequireUtf8(); 1367 bitField0_ |= 0x00000020; 1368 break; 1369 } // case 26 1370 case 50: 1371 { 1372 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 1373 bitField0_ |= 0x00000040; 1374 break; 1375 } // case 50 1376 case 58: 1377 { 1378 input.readMessage( 1379 getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); 1380 predictionResourcesCase_ = 7; 1381 break; 1382 } // case 58 1383 case 66: 1384 { 1385 input.readMessage( 1386 getAutomaticResourcesFieldBuilder().getBuilder(), extensionRegistry); 1387 predictionResourcesCase_ = 8; 1388 break; 1389 } // case 66 1390 case 74: 1391 { 1392 input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); 1393 bitField0_ |= 0x00000080; 1394 break; 1395 } // case 74 1396 case 90: 1397 { 1398 serviceAccount_ = input.readStringRequireUtf8(); 1399 bitField0_ |= 0x00000100; 1400 break; 1401 } // case 90 1402 case 104: 1403 { 1404 enableAccessLogging_ = input.readBool(); 1405 bitField0_ |= 0x00000400; 1406 break; 1407 } // case 104 1408 case 114: 1409 { 1410 input.readMessage( 1411 getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); 1412 bitField0_ |= 0x00000800; 1413 break; 1414 } // case 114 1415 case 120: 1416 { 1417 disableContainerLogging_ = input.readBool(); 1418 bitField0_ |= 0x00000200; 1419 break; 1420 } // case 120 1421 case 146: 1422 { 1423 modelVersionId_ = input.readStringRequireUtf8(); 1424 bitField0_ |= 0x00000010; 1425 break; 1426 } // case 146 1427 default: 1428 { 1429 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1430 done = true; // was an endgroup tag 1431 } 1432 break; 1433 } // default: 1434 } // switch (tag) 1435 } // while (!done) 1436 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1437 throw e.unwrapIOException(); 1438 } finally { 1439 onChanged(); 1440 } // finally 1441 return this; 1442 } 1443 1444 private int predictionResourcesCase_ = 0; 1445 private java.lang.Object predictionResources_; 1446 getPredictionResourcesCase()1447 public PredictionResourcesCase getPredictionResourcesCase() { 1448 return PredictionResourcesCase.forNumber(predictionResourcesCase_); 1449 } 1450 clearPredictionResources()1451 public Builder clearPredictionResources() { 1452 predictionResourcesCase_ = 0; 1453 predictionResources_ = null; 1454 onChanged(); 1455 return this; 1456 } 1457 1458 private int bitField0_; 1459 1460 private com.google.protobuf.SingleFieldBuilderV3< 1461 com.google.cloud.aiplatform.v1.DedicatedResources, 1462 com.google.cloud.aiplatform.v1.DedicatedResources.Builder, 1463 com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder> 1464 dedicatedResourcesBuilder_; 1465 /** 1466 * 1467 * 1468 * <pre> 1469 * A description of resources that are dedicated to the DeployedModel, and 1470 * that need a higher degree of manual configuration. 1471 * </pre> 1472 * 1473 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1474 * 1475 * @return Whether the dedicatedResources field is set. 1476 */ 1477 @java.lang.Override hasDedicatedResources()1478 public boolean hasDedicatedResources() { 1479 return predictionResourcesCase_ == 7; 1480 } 1481 /** 1482 * 1483 * 1484 * <pre> 1485 * A description of resources that are dedicated to the DeployedModel, and 1486 * that need a higher degree of manual configuration. 1487 * </pre> 1488 * 1489 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1490 * 1491 * @return The dedicatedResources. 1492 */ 1493 @java.lang.Override getDedicatedResources()1494 public com.google.cloud.aiplatform.v1.DedicatedResources getDedicatedResources() { 1495 if (dedicatedResourcesBuilder_ == null) { 1496 if (predictionResourcesCase_ == 7) { 1497 return (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_; 1498 } 1499 return com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 1500 } else { 1501 if (predictionResourcesCase_ == 7) { 1502 return dedicatedResourcesBuilder_.getMessage(); 1503 } 1504 return com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 1505 } 1506 } 1507 /** 1508 * 1509 * 1510 * <pre> 1511 * A description of resources that are dedicated to the DeployedModel, and 1512 * that need a higher degree of manual configuration. 1513 * </pre> 1514 * 1515 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1516 */ setDedicatedResources(com.google.cloud.aiplatform.v1.DedicatedResources value)1517 public Builder setDedicatedResources(com.google.cloud.aiplatform.v1.DedicatedResources value) { 1518 if (dedicatedResourcesBuilder_ == null) { 1519 if (value == null) { 1520 throw new NullPointerException(); 1521 } 1522 predictionResources_ = value; 1523 onChanged(); 1524 } else { 1525 dedicatedResourcesBuilder_.setMessage(value); 1526 } 1527 predictionResourcesCase_ = 7; 1528 return this; 1529 } 1530 /** 1531 * 1532 * 1533 * <pre> 1534 * A description of resources that are dedicated to the DeployedModel, and 1535 * that need a higher degree of manual configuration. 1536 * </pre> 1537 * 1538 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1539 */ setDedicatedResources( com.google.cloud.aiplatform.v1.DedicatedResources.Builder builderForValue)1540 public Builder setDedicatedResources( 1541 com.google.cloud.aiplatform.v1.DedicatedResources.Builder builderForValue) { 1542 if (dedicatedResourcesBuilder_ == null) { 1543 predictionResources_ = builderForValue.build(); 1544 onChanged(); 1545 } else { 1546 dedicatedResourcesBuilder_.setMessage(builderForValue.build()); 1547 } 1548 predictionResourcesCase_ = 7; 1549 return this; 1550 } 1551 /** 1552 * 1553 * 1554 * <pre> 1555 * A description of resources that are dedicated to the DeployedModel, and 1556 * that need a higher degree of manual configuration. 1557 * </pre> 1558 * 1559 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1560 */ mergeDedicatedResources( com.google.cloud.aiplatform.v1.DedicatedResources value)1561 public Builder mergeDedicatedResources( 1562 com.google.cloud.aiplatform.v1.DedicatedResources value) { 1563 if (dedicatedResourcesBuilder_ == null) { 1564 if (predictionResourcesCase_ == 7 1565 && predictionResources_ 1566 != com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance()) { 1567 predictionResources_ = 1568 com.google.cloud.aiplatform.v1.DedicatedResources.newBuilder( 1569 (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_) 1570 .mergeFrom(value) 1571 .buildPartial(); 1572 } else { 1573 predictionResources_ = value; 1574 } 1575 onChanged(); 1576 } else { 1577 if (predictionResourcesCase_ == 7) { 1578 dedicatedResourcesBuilder_.mergeFrom(value); 1579 } else { 1580 dedicatedResourcesBuilder_.setMessage(value); 1581 } 1582 } 1583 predictionResourcesCase_ = 7; 1584 return this; 1585 } 1586 /** 1587 * 1588 * 1589 * <pre> 1590 * A description of resources that are dedicated to the DeployedModel, and 1591 * that need a higher degree of manual configuration. 1592 * </pre> 1593 * 1594 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1595 */ clearDedicatedResources()1596 public Builder clearDedicatedResources() { 1597 if (dedicatedResourcesBuilder_ == null) { 1598 if (predictionResourcesCase_ == 7) { 1599 predictionResourcesCase_ = 0; 1600 predictionResources_ = null; 1601 onChanged(); 1602 } 1603 } else { 1604 if (predictionResourcesCase_ == 7) { 1605 predictionResourcesCase_ = 0; 1606 predictionResources_ = null; 1607 } 1608 dedicatedResourcesBuilder_.clear(); 1609 } 1610 return this; 1611 } 1612 /** 1613 * 1614 * 1615 * <pre> 1616 * A description of resources that are dedicated to the DeployedModel, and 1617 * that need a higher degree of manual configuration. 1618 * </pre> 1619 * 1620 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1621 */ 1622 public com.google.cloud.aiplatform.v1.DedicatedResources.Builder getDedicatedResourcesBuilder()1623 getDedicatedResourcesBuilder() { 1624 return getDedicatedResourcesFieldBuilder().getBuilder(); 1625 } 1626 /** 1627 * 1628 * 1629 * <pre> 1630 * A description of resources that are dedicated to the DeployedModel, and 1631 * that need a higher degree of manual configuration. 1632 * </pre> 1633 * 1634 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1635 */ 1636 @java.lang.Override 1637 public com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder()1638 getDedicatedResourcesOrBuilder() { 1639 if ((predictionResourcesCase_ == 7) && (dedicatedResourcesBuilder_ != null)) { 1640 return dedicatedResourcesBuilder_.getMessageOrBuilder(); 1641 } else { 1642 if (predictionResourcesCase_ == 7) { 1643 return (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_; 1644 } 1645 return com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 1646 } 1647 } 1648 /** 1649 * 1650 * 1651 * <pre> 1652 * A description of resources that are dedicated to the DeployedModel, and 1653 * that need a higher degree of manual configuration. 1654 * </pre> 1655 * 1656 * <code>.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 7;</code> 1657 */ 1658 private com.google.protobuf.SingleFieldBuilderV3< 1659 com.google.cloud.aiplatform.v1.DedicatedResources, 1660 com.google.cloud.aiplatform.v1.DedicatedResources.Builder, 1661 com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder> getDedicatedResourcesFieldBuilder()1662 getDedicatedResourcesFieldBuilder() { 1663 if (dedicatedResourcesBuilder_ == null) { 1664 if (!(predictionResourcesCase_ == 7)) { 1665 predictionResources_ = 1666 com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance(); 1667 } 1668 dedicatedResourcesBuilder_ = 1669 new com.google.protobuf.SingleFieldBuilderV3< 1670 com.google.cloud.aiplatform.v1.DedicatedResources, 1671 com.google.cloud.aiplatform.v1.DedicatedResources.Builder, 1672 com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder>( 1673 (com.google.cloud.aiplatform.v1.DedicatedResources) predictionResources_, 1674 getParentForChildren(), 1675 isClean()); 1676 predictionResources_ = null; 1677 } 1678 predictionResourcesCase_ = 7; 1679 onChanged(); 1680 return dedicatedResourcesBuilder_; 1681 } 1682 1683 private com.google.protobuf.SingleFieldBuilderV3< 1684 com.google.cloud.aiplatform.v1.AutomaticResources, 1685 com.google.cloud.aiplatform.v1.AutomaticResources.Builder, 1686 com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder> 1687 automaticResourcesBuilder_; 1688 /** 1689 * 1690 * 1691 * <pre> 1692 * A description of resources that to large degree are decided by Vertex 1693 * AI, and require only a modest additional configuration. 1694 * </pre> 1695 * 1696 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1697 * 1698 * @return Whether the automaticResources field is set. 1699 */ 1700 @java.lang.Override hasAutomaticResources()1701 public boolean hasAutomaticResources() { 1702 return predictionResourcesCase_ == 8; 1703 } 1704 /** 1705 * 1706 * 1707 * <pre> 1708 * A description of resources that to large degree are decided by Vertex 1709 * AI, and require only a modest additional configuration. 1710 * </pre> 1711 * 1712 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1713 * 1714 * @return The automaticResources. 1715 */ 1716 @java.lang.Override getAutomaticResources()1717 public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() { 1718 if (automaticResourcesBuilder_ == null) { 1719 if (predictionResourcesCase_ == 8) { 1720 return (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_; 1721 } 1722 return com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 1723 } else { 1724 if (predictionResourcesCase_ == 8) { 1725 return automaticResourcesBuilder_.getMessage(); 1726 } 1727 return com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 1728 } 1729 } 1730 /** 1731 * 1732 * 1733 * <pre> 1734 * A description of resources that to large degree are decided by Vertex 1735 * AI, and require only a modest additional configuration. 1736 * </pre> 1737 * 1738 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1739 */ setAutomaticResources(com.google.cloud.aiplatform.v1.AutomaticResources value)1740 public Builder setAutomaticResources(com.google.cloud.aiplatform.v1.AutomaticResources value) { 1741 if (automaticResourcesBuilder_ == null) { 1742 if (value == null) { 1743 throw new NullPointerException(); 1744 } 1745 predictionResources_ = value; 1746 onChanged(); 1747 } else { 1748 automaticResourcesBuilder_.setMessage(value); 1749 } 1750 predictionResourcesCase_ = 8; 1751 return this; 1752 } 1753 /** 1754 * 1755 * 1756 * <pre> 1757 * A description of resources that to large degree are decided by Vertex 1758 * AI, and require only a modest additional configuration. 1759 * </pre> 1760 * 1761 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1762 */ setAutomaticResources( com.google.cloud.aiplatform.v1.AutomaticResources.Builder builderForValue)1763 public Builder setAutomaticResources( 1764 com.google.cloud.aiplatform.v1.AutomaticResources.Builder builderForValue) { 1765 if (automaticResourcesBuilder_ == null) { 1766 predictionResources_ = builderForValue.build(); 1767 onChanged(); 1768 } else { 1769 automaticResourcesBuilder_.setMessage(builderForValue.build()); 1770 } 1771 predictionResourcesCase_ = 8; 1772 return this; 1773 } 1774 /** 1775 * 1776 * 1777 * <pre> 1778 * A description of resources that to large degree are decided by Vertex 1779 * AI, and require only a modest additional configuration. 1780 * </pre> 1781 * 1782 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1783 */ mergeAutomaticResources( com.google.cloud.aiplatform.v1.AutomaticResources value)1784 public Builder mergeAutomaticResources( 1785 com.google.cloud.aiplatform.v1.AutomaticResources value) { 1786 if (automaticResourcesBuilder_ == null) { 1787 if (predictionResourcesCase_ == 8 1788 && predictionResources_ 1789 != com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance()) { 1790 predictionResources_ = 1791 com.google.cloud.aiplatform.v1.AutomaticResources.newBuilder( 1792 (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_) 1793 .mergeFrom(value) 1794 .buildPartial(); 1795 } else { 1796 predictionResources_ = value; 1797 } 1798 onChanged(); 1799 } else { 1800 if (predictionResourcesCase_ == 8) { 1801 automaticResourcesBuilder_.mergeFrom(value); 1802 } else { 1803 automaticResourcesBuilder_.setMessage(value); 1804 } 1805 } 1806 predictionResourcesCase_ = 8; 1807 return this; 1808 } 1809 /** 1810 * 1811 * 1812 * <pre> 1813 * A description of resources that to large degree are decided by Vertex 1814 * AI, and require only a modest additional configuration. 1815 * </pre> 1816 * 1817 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1818 */ clearAutomaticResources()1819 public Builder clearAutomaticResources() { 1820 if (automaticResourcesBuilder_ == null) { 1821 if (predictionResourcesCase_ == 8) { 1822 predictionResourcesCase_ = 0; 1823 predictionResources_ = null; 1824 onChanged(); 1825 } 1826 } else { 1827 if (predictionResourcesCase_ == 8) { 1828 predictionResourcesCase_ = 0; 1829 predictionResources_ = null; 1830 } 1831 automaticResourcesBuilder_.clear(); 1832 } 1833 return this; 1834 } 1835 /** 1836 * 1837 * 1838 * <pre> 1839 * A description of resources that to large degree are decided by Vertex 1840 * AI, and require only a modest additional configuration. 1841 * </pre> 1842 * 1843 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1844 */ 1845 public com.google.cloud.aiplatform.v1.AutomaticResources.Builder getAutomaticResourcesBuilder()1846 getAutomaticResourcesBuilder() { 1847 return getAutomaticResourcesFieldBuilder().getBuilder(); 1848 } 1849 /** 1850 * 1851 * 1852 * <pre> 1853 * A description of resources that to large degree are decided by Vertex 1854 * AI, and require only a modest additional configuration. 1855 * </pre> 1856 * 1857 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1858 */ 1859 @java.lang.Override 1860 public com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder()1861 getAutomaticResourcesOrBuilder() { 1862 if ((predictionResourcesCase_ == 8) && (automaticResourcesBuilder_ != null)) { 1863 return automaticResourcesBuilder_.getMessageOrBuilder(); 1864 } else { 1865 if (predictionResourcesCase_ == 8) { 1866 return (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_; 1867 } 1868 return com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 1869 } 1870 } 1871 /** 1872 * 1873 * 1874 * <pre> 1875 * A description of resources that to large degree are decided by Vertex 1876 * AI, and require only a modest additional configuration. 1877 * </pre> 1878 * 1879 * <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 8;</code> 1880 */ 1881 private com.google.protobuf.SingleFieldBuilderV3< 1882 com.google.cloud.aiplatform.v1.AutomaticResources, 1883 com.google.cloud.aiplatform.v1.AutomaticResources.Builder, 1884 com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder> getAutomaticResourcesFieldBuilder()1885 getAutomaticResourcesFieldBuilder() { 1886 if (automaticResourcesBuilder_ == null) { 1887 if (!(predictionResourcesCase_ == 8)) { 1888 predictionResources_ = 1889 com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance(); 1890 } 1891 automaticResourcesBuilder_ = 1892 new com.google.protobuf.SingleFieldBuilderV3< 1893 com.google.cloud.aiplatform.v1.AutomaticResources, 1894 com.google.cloud.aiplatform.v1.AutomaticResources.Builder, 1895 com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder>( 1896 (com.google.cloud.aiplatform.v1.AutomaticResources) predictionResources_, 1897 getParentForChildren(), 1898 isClean()); 1899 predictionResources_ = null; 1900 } 1901 predictionResourcesCase_ = 8; 1902 onChanged(); 1903 return automaticResourcesBuilder_; 1904 } 1905 1906 private java.lang.Object id_ = ""; 1907 /** 1908 * 1909 * 1910 * <pre> 1911 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 1912 * Vertex AI will generate a value for this ID. 1913 * This value should be 1-10 characters, and valid characters are /[0-9]/. 1914 * </pre> 1915 * 1916 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 1917 * 1918 * @return The id. 1919 */ getId()1920 public java.lang.String getId() { 1921 java.lang.Object ref = id_; 1922 if (!(ref instanceof java.lang.String)) { 1923 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1924 java.lang.String s = bs.toStringUtf8(); 1925 id_ = s; 1926 return s; 1927 } else { 1928 return (java.lang.String) ref; 1929 } 1930 } 1931 /** 1932 * 1933 * 1934 * <pre> 1935 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 1936 * Vertex AI will generate a value for this ID. 1937 * This value should be 1-10 characters, and valid characters are /[0-9]/. 1938 * </pre> 1939 * 1940 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 1941 * 1942 * @return The bytes for id. 1943 */ getIdBytes()1944 public com.google.protobuf.ByteString getIdBytes() { 1945 java.lang.Object ref = id_; 1946 if (ref instanceof String) { 1947 com.google.protobuf.ByteString b = 1948 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1949 id_ = b; 1950 return b; 1951 } else { 1952 return (com.google.protobuf.ByteString) ref; 1953 } 1954 } 1955 /** 1956 * 1957 * 1958 * <pre> 1959 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 1960 * Vertex AI will generate a value for this ID. 1961 * This value should be 1-10 characters, and valid characters are /[0-9]/. 1962 * </pre> 1963 * 1964 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 1965 * 1966 * @param value The id to set. 1967 * @return This builder for chaining. 1968 */ setId(java.lang.String value)1969 public Builder setId(java.lang.String value) { 1970 if (value == null) { 1971 throw new NullPointerException(); 1972 } 1973 id_ = value; 1974 bitField0_ |= 0x00000004; 1975 onChanged(); 1976 return this; 1977 } 1978 /** 1979 * 1980 * 1981 * <pre> 1982 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 1983 * Vertex AI will generate a value for this ID. 1984 * This value should be 1-10 characters, and valid characters are /[0-9]/. 1985 * </pre> 1986 * 1987 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 1988 * 1989 * @return This builder for chaining. 1990 */ clearId()1991 public Builder clearId() { 1992 id_ = getDefaultInstance().getId(); 1993 bitField0_ = (bitField0_ & ~0x00000004); 1994 onChanged(); 1995 return this; 1996 } 1997 /** 1998 * 1999 * 2000 * <pre> 2001 * Immutable. The ID of the DeployedModel. If not provided upon deployment, 2002 * Vertex AI will generate a value for this ID. 2003 * This value should be 1-10 characters, and valid characters are /[0-9]/. 2004 * </pre> 2005 * 2006 * <code>string id = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 2007 * 2008 * @param value The bytes for id to set. 2009 * @return This builder for chaining. 2010 */ setIdBytes(com.google.protobuf.ByteString value)2011 public Builder setIdBytes(com.google.protobuf.ByteString value) { 2012 if (value == null) { 2013 throw new NullPointerException(); 2014 } 2015 checkByteStringIsUtf8(value); 2016 id_ = value; 2017 bitField0_ |= 0x00000004; 2018 onChanged(); 2019 return this; 2020 } 2021 2022 private java.lang.Object model_ = ""; 2023 /** 2024 * 2025 * 2026 * <pre> 2027 * Required. The resource name of the Model that this is the deployment of. 2028 * Note that the Model may be in a different location than the DeployedModel's 2029 * Endpoint. 2030 * The resource name may contain version id or version alias to specify the 2031 * version. 2032 * Example: `projects/{project}/locations/{location}/models/{model}@2` 2033 * or 2034 * `projects/{project}/locations/{location}/models/{model}@golden` 2035 * if no version is specified, the default version will be deployed. 2036 * </pre> 2037 * 2038 * <code> 2039 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 2040 * </code> 2041 * 2042 * @return The model. 2043 */ getModel()2044 public java.lang.String getModel() { 2045 java.lang.Object ref = model_; 2046 if (!(ref instanceof java.lang.String)) { 2047 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2048 java.lang.String s = bs.toStringUtf8(); 2049 model_ = s; 2050 return s; 2051 } else { 2052 return (java.lang.String) ref; 2053 } 2054 } 2055 /** 2056 * 2057 * 2058 * <pre> 2059 * Required. The resource name of the Model that this is the deployment of. 2060 * Note that the Model may be in a different location than the DeployedModel's 2061 * Endpoint. 2062 * The resource name may contain version id or version alias to specify the 2063 * version. 2064 * Example: `projects/{project}/locations/{location}/models/{model}@2` 2065 * or 2066 * `projects/{project}/locations/{location}/models/{model}@golden` 2067 * if no version is specified, the default version will be deployed. 2068 * </pre> 2069 * 2070 * <code> 2071 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 2072 * </code> 2073 * 2074 * @return The bytes for model. 2075 */ getModelBytes()2076 public com.google.protobuf.ByteString getModelBytes() { 2077 java.lang.Object ref = model_; 2078 if (ref instanceof String) { 2079 com.google.protobuf.ByteString b = 2080 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2081 model_ = b; 2082 return b; 2083 } else { 2084 return (com.google.protobuf.ByteString) ref; 2085 } 2086 } 2087 /** 2088 * 2089 * 2090 * <pre> 2091 * Required. The resource name of the Model that this is the deployment of. 2092 * Note that the Model may be in a different location than the DeployedModel's 2093 * Endpoint. 2094 * The resource name may contain version id or version alias to specify the 2095 * version. 2096 * Example: `projects/{project}/locations/{location}/models/{model}@2` 2097 * or 2098 * `projects/{project}/locations/{location}/models/{model}@golden` 2099 * if no version is specified, the default version will be deployed. 2100 * </pre> 2101 * 2102 * <code> 2103 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 2104 * </code> 2105 * 2106 * @param value The model to set. 2107 * @return This builder for chaining. 2108 */ setModel(java.lang.String value)2109 public Builder setModel(java.lang.String value) { 2110 if (value == null) { 2111 throw new NullPointerException(); 2112 } 2113 model_ = value; 2114 bitField0_ |= 0x00000008; 2115 onChanged(); 2116 return this; 2117 } 2118 /** 2119 * 2120 * 2121 * <pre> 2122 * Required. The resource name of the Model that this is the deployment of. 2123 * Note that the Model may be in a different location than the DeployedModel's 2124 * Endpoint. 2125 * The resource name may contain version id or version alias to specify the 2126 * version. 2127 * Example: `projects/{project}/locations/{location}/models/{model}@2` 2128 * or 2129 * `projects/{project}/locations/{location}/models/{model}@golden` 2130 * if no version is specified, the default version will be deployed. 2131 * </pre> 2132 * 2133 * <code> 2134 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 2135 * </code> 2136 * 2137 * @return This builder for chaining. 2138 */ clearModel()2139 public Builder clearModel() { 2140 model_ = getDefaultInstance().getModel(); 2141 bitField0_ = (bitField0_ & ~0x00000008); 2142 onChanged(); 2143 return this; 2144 } 2145 /** 2146 * 2147 * 2148 * <pre> 2149 * Required. The resource name of the Model that this is the deployment of. 2150 * Note that the Model may be in a different location than the DeployedModel's 2151 * Endpoint. 2152 * The resource name may contain version id or version alias to specify the 2153 * version. 2154 * Example: `projects/{project}/locations/{location}/models/{model}@2` 2155 * or 2156 * `projects/{project}/locations/{location}/models/{model}@golden` 2157 * if no version is specified, the default version will be deployed. 2158 * </pre> 2159 * 2160 * <code> 2161 * string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 2162 * </code> 2163 * 2164 * @param value The bytes for model to set. 2165 * @return This builder for chaining. 2166 */ setModelBytes(com.google.protobuf.ByteString value)2167 public Builder setModelBytes(com.google.protobuf.ByteString value) { 2168 if (value == null) { 2169 throw new NullPointerException(); 2170 } 2171 checkByteStringIsUtf8(value); 2172 model_ = value; 2173 bitField0_ |= 0x00000008; 2174 onChanged(); 2175 return this; 2176 } 2177 2178 private java.lang.Object modelVersionId_ = ""; 2179 /** 2180 * 2181 * 2182 * <pre> 2183 * Output only. The version ID of the model that is deployed. 2184 * </pre> 2185 * 2186 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2187 * 2188 * @return The modelVersionId. 2189 */ getModelVersionId()2190 public java.lang.String getModelVersionId() { 2191 java.lang.Object ref = modelVersionId_; 2192 if (!(ref instanceof java.lang.String)) { 2193 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2194 java.lang.String s = bs.toStringUtf8(); 2195 modelVersionId_ = s; 2196 return s; 2197 } else { 2198 return (java.lang.String) ref; 2199 } 2200 } 2201 /** 2202 * 2203 * 2204 * <pre> 2205 * Output only. The version ID of the model that is deployed. 2206 * </pre> 2207 * 2208 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2209 * 2210 * @return The bytes for modelVersionId. 2211 */ getModelVersionIdBytes()2212 public com.google.protobuf.ByteString getModelVersionIdBytes() { 2213 java.lang.Object ref = modelVersionId_; 2214 if (ref instanceof String) { 2215 com.google.protobuf.ByteString b = 2216 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2217 modelVersionId_ = b; 2218 return b; 2219 } else { 2220 return (com.google.protobuf.ByteString) ref; 2221 } 2222 } 2223 /** 2224 * 2225 * 2226 * <pre> 2227 * Output only. The version ID of the model that is deployed. 2228 * </pre> 2229 * 2230 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2231 * 2232 * @param value The modelVersionId to set. 2233 * @return This builder for chaining. 2234 */ setModelVersionId(java.lang.String value)2235 public Builder setModelVersionId(java.lang.String value) { 2236 if (value == null) { 2237 throw new NullPointerException(); 2238 } 2239 modelVersionId_ = value; 2240 bitField0_ |= 0x00000010; 2241 onChanged(); 2242 return this; 2243 } 2244 /** 2245 * 2246 * 2247 * <pre> 2248 * Output only. The version ID of the model that is deployed. 2249 * </pre> 2250 * 2251 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2252 * 2253 * @return This builder for chaining. 2254 */ clearModelVersionId()2255 public Builder clearModelVersionId() { 2256 modelVersionId_ = getDefaultInstance().getModelVersionId(); 2257 bitField0_ = (bitField0_ & ~0x00000010); 2258 onChanged(); 2259 return this; 2260 } 2261 /** 2262 * 2263 * 2264 * <pre> 2265 * Output only. The version ID of the model that is deployed. 2266 * </pre> 2267 * 2268 * <code>string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2269 * 2270 * @param value The bytes for modelVersionId to set. 2271 * @return This builder for chaining. 2272 */ setModelVersionIdBytes(com.google.protobuf.ByteString value)2273 public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { 2274 if (value == null) { 2275 throw new NullPointerException(); 2276 } 2277 checkByteStringIsUtf8(value); 2278 modelVersionId_ = value; 2279 bitField0_ |= 0x00000010; 2280 onChanged(); 2281 return this; 2282 } 2283 2284 private java.lang.Object displayName_ = ""; 2285 /** 2286 * 2287 * 2288 * <pre> 2289 * The display name of the DeployedModel. If not provided upon creation, 2290 * the Model's display_name is used. 2291 * </pre> 2292 * 2293 * <code>string display_name = 3;</code> 2294 * 2295 * @return The displayName. 2296 */ getDisplayName()2297 public java.lang.String getDisplayName() { 2298 java.lang.Object ref = displayName_; 2299 if (!(ref instanceof java.lang.String)) { 2300 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2301 java.lang.String s = bs.toStringUtf8(); 2302 displayName_ = s; 2303 return s; 2304 } else { 2305 return (java.lang.String) ref; 2306 } 2307 } 2308 /** 2309 * 2310 * 2311 * <pre> 2312 * The display name of the DeployedModel. If not provided upon creation, 2313 * the Model's display_name is used. 2314 * </pre> 2315 * 2316 * <code>string display_name = 3;</code> 2317 * 2318 * @return The bytes for displayName. 2319 */ getDisplayNameBytes()2320 public com.google.protobuf.ByteString getDisplayNameBytes() { 2321 java.lang.Object ref = displayName_; 2322 if (ref instanceof String) { 2323 com.google.protobuf.ByteString b = 2324 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2325 displayName_ = b; 2326 return b; 2327 } else { 2328 return (com.google.protobuf.ByteString) ref; 2329 } 2330 } 2331 /** 2332 * 2333 * 2334 * <pre> 2335 * The display name of the DeployedModel. If not provided upon creation, 2336 * the Model's display_name is used. 2337 * </pre> 2338 * 2339 * <code>string display_name = 3;</code> 2340 * 2341 * @param value The displayName to set. 2342 * @return This builder for chaining. 2343 */ setDisplayName(java.lang.String value)2344 public Builder setDisplayName(java.lang.String value) { 2345 if (value == null) { 2346 throw new NullPointerException(); 2347 } 2348 displayName_ = value; 2349 bitField0_ |= 0x00000020; 2350 onChanged(); 2351 return this; 2352 } 2353 /** 2354 * 2355 * 2356 * <pre> 2357 * The display name of the DeployedModel. If not provided upon creation, 2358 * the Model's display_name is used. 2359 * </pre> 2360 * 2361 * <code>string display_name = 3;</code> 2362 * 2363 * @return This builder for chaining. 2364 */ clearDisplayName()2365 public Builder clearDisplayName() { 2366 displayName_ = getDefaultInstance().getDisplayName(); 2367 bitField0_ = (bitField0_ & ~0x00000020); 2368 onChanged(); 2369 return this; 2370 } 2371 /** 2372 * 2373 * 2374 * <pre> 2375 * The display name of the DeployedModel. If not provided upon creation, 2376 * the Model's display_name is used. 2377 * </pre> 2378 * 2379 * <code>string display_name = 3;</code> 2380 * 2381 * @param value The bytes for displayName to set. 2382 * @return This builder for chaining. 2383 */ setDisplayNameBytes(com.google.protobuf.ByteString value)2384 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 2385 if (value == null) { 2386 throw new NullPointerException(); 2387 } 2388 checkByteStringIsUtf8(value); 2389 displayName_ = value; 2390 bitField0_ |= 0x00000020; 2391 onChanged(); 2392 return this; 2393 } 2394 2395 private com.google.protobuf.Timestamp createTime_; 2396 private com.google.protobuf.SingleFieldBuilderV3< 2397 com.google.protobuf.Timestamp, 2398 com.google.protobuf.Timestamp.Builder, 2399 com.google.protobuf.TimestampOrBuilder> 2400 createTimeBuilder_; 2401 /** 2402 * 2403 * 2404 * <pre> 2405 * Output only. Timestamp when the DeployedModel was created. 2406 * </pre> 2407 * 2408 * <code> 2409 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2410 * </code> 2411 * 2412 * @return Whether the createTime field is set. 2413 */ hasCreateTime()2414 public boolean hasCreateTime() { 2415 return ((bitField0_ & 0x00000040) != 0); 2416 } 2417 /** 2418 * 2419 * 2420 * <pre> 2421 * Output only. Timestamp when the DeployedModel was created. 2422 * </pre> 2423 * 2424 * <code> 2425 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2426 * </code> 2427 * 2428 * @return The createTime. 2429 */ getCreateTime()2430 public com.google.protobuf.Timestamp getCreateTime() { 2431 if (createTimeBuilder_ == null) { 2432 return createTime_ == null 2433 ? com.google.protobuf.Timestamp.getDefaultInstance() 2434 : createTime_; 2435 } else { 2436 return createTimeBuilder_.getMessage(); 2437 } 2438 } 2439 /** 2440 * 2441 * 2442 * <pre> 2443 * Output only. Timestamp when the DeployedModel was created. 2444 * </pre> 2445 * 2446 * <code> 2447 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2448 * </code> 2449 */ setCreateTime(com.google.protobuf.Timestamp value)2450 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 2451 if (createTimeBuilder_ == null) { 2452 if (value == null) { 2453 throw new NullPointerException(); 2454 } 2455 createTime_ = value; 2456 } else { 2457 createTimeBuilder_.setMessage(value); 2458 } 2459 bitField0_ |= 0x00000040; 2460 onChanged(); 2461 return this; 2462 } 2463 /** 2464 * 2465 * 2466 * <pre> 2467 * Output only. Timestamp when the DeployedModel was created. 2468 * </pre> 2469 * 2470 * <code> 2471 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2472 * </code> 2473 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2474 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 2475 if (createTimeBuilder_ == null) { 2476 createTime_ = builderForValue.build(); 2477 } else { 2478 createTimeBuilder_.setMessage(builderForValue.build()); 2479 } 2480 bitField0_ |= 0x00000040; 2481 onChanged(); 2482 return this; 2483 } 2484 /** 2485 * 2486 * 2487 * <pre> 2488 * Output only. Timestamp when the DeployedModel was created. 2489 * </pre> 2490 * 2491 * <code> 2492 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2493 * </code> 2494 */ mergeCreateTime(com.google.protobuf.Timestamp value)2495 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 2496 if (createTimeBuilder_ == null) { 2497 if (((bitField0_ & 0x00000040) != 0) 2498 && createTime_ != null 2499 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 2500 getCreateTimeBuilder().mergeFrom(value); 2501 } else { 2502 createTime_ = value; 2503 } 2504 } else { 2505 createTimeBuilder_.mergeFrom(value); 2506 } 2507 bitField0_ |= 0x00000040; 2508 onChanged(); 2509 return this; 2510 } 2511 /** 2512 * 2513 * 2514 * <pre> 2515 * Output only. Timestamp when the DeployedModel was created. 2516 * </pre> 2517 * 2518 * <code> 2519 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2520 * </code> 2521 */ clearCreateTime()2522 public Builder clearCreateTime() { 2523 bitField0_ = (bitField0_ & ~0x00000040); 2524 createTime_ = null; 2525 if (createTimeBuilder_ != null) { 2526 createTimeBuilder_.dispose(); 2527 createTimeBuilder_ = null; 2528 } 2529 onChanged(); 2530 return this; 2531 } 2532 /** 2533 * 2534 * 2535 * <pre> 2536 * Output only. Timestamp when the DeployedModel was created. 2537 * </pre> 2538 * 2539 * <code> 2540 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2541 * </code> 2542 */ getCreateTimeBuilder()2543 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 2544 bitField0_ |= 0x00000040; 2545 onChanged(); 2546 return getCreateTimeFieldBuilder().getBuilder(); 2547 } 2548 /** 2549 * 2550 * 2551 * <pre> 2552 * Output only. Timestamp when the DeployedModel was created. 2553 * </pre> 2554 * 2555 * <code> 2556 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2557 * </code> 2558 */ getCreateTimeOrBuilder()2559 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 2560 if (createTimeBuilder_ != null) { 2561 return createTimeBuilder_.getMessageOrBuilder(); 2562 } else { 2563 return createTime_ == null 2564 ? com.google.protobuf.Timestamp.getDefaultInstance() 2565 : createTime_; 2566 } 2567 } 2568 /** 2569 * 2570 * 2571 * <pre> 2572 * Output only. Timestamp when the DeployedModel was created. 2573 * </pre> 2574 * 2575 * <code> 2576 * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2577 * </code> 2578 */ 2579 private com.google.protobuf.SingleFieldBuilderV3< 2580 com.google.protobuf.Timestamp, 2581 com.google.protobuf.Timestamp.Builder, 2582 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()2583 getCreateTimeFieldBuilder() { 2584 if (createTimeBuilder_ == null) { 2585 createTimeBuilder_ = 2586 new com.google.protobuf.SingleFieldBuilderV3< 2587 com.google.protobuf.Timestamp, 2588 com.google.protobuf.Timestamp.Builder, 2589 com.google.protobuf.TimestampOrBuilder>( 2590 getCreateTime(), getParentForChildren(), isClean()); 2591 createTime_ = null; 2592 } 2593 return createTimeBuilder_; 2594 } 2595 2596 private com.google.cloud.aiplatform.v1.ExplanationSpec explanationSpec_; 2597 private com.google.protobuf.SingleFieldBuilderV3< 2598 com.google.cloud.aiplatform.v1.ExplanationSpec, 2599 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 2600 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder> 2601 explanationSpecBuilder_; 2602 /** 2603 * 2604 * 2605 * <pre> 2606 * Explanation configuration for this DeployedModel. 2607 * When deploying a Model using 2608 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2609 * this value overrides the value of 2610 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2611 * All fields of 2612 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2613 * are optional in the request. If a field of 2614 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2615 * is not populated, the value of the same field of 2616 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2617 * is inherited. If the corresponding 2618 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2619 * is not populated, all fields of the 2620 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2621 * will be used for the explanation configuration. 2622 * </pre> 2623 * 2624 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2625 * 2626 * @return Whether the explanationSpec field is set. 2627 */ hasExplanationSpec()2628 public boolean hasExplanationSpec() { 2629 return ((bitField0_ & 0x00000080) != 0); 2630 } 2631 /** 2632 * 2633 * 2634 * <pre> 2635 * Explanation configuration for this DeployedModel. 2636 * When deploying a Model using 2637 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2638 * this value overrides the value of 2639 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2640 * All fields of 2641 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2642 * are optional in the request. If a field of 2643 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2644 * is not populated, the value of the same field of 2645 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2646 * is inherited. If the corresponding 2647 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2648 * is not populated, all fields of the 2649 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2650 * will be used for the explanation configuration. 2651 * </pre> 2652 * 2653 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2654 * 2655 * @return The explanationSpec. 2656 */ getExplanationSpec()2657 public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { 2658 if (explanationSpecBuilder_ == null) { 2659 return explanationSpec_ == null 2660 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 2661 : explanationSpec_; 2662 } else { 2663 return explanationSpecBuilder_.getMessage(); 2664 } 2665 } 2666 /** 2667 * 2668 * 2669 * <pre> 2670 * Explanation configuration for this DeployedModel. 2671 * When deploying a Model using 2672 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2673 * this value overrides the value of 2674 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2675 * All fields of 2676 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2677 * are optional in the request. If a field of 2678 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2679 * is not populated, the value of the same field of 2680 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2681 * is inherited. If the corresponding 2682 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2683 * is not populated, all fields of the 2684 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2685 * will be used for the explanation configuration. 2686 * </pre> 2687 * 2688 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2689 */ setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value)2690 public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { 2691 if (explanationSpecBuilder_ == null) { 2692 if (value == null) { 2693 throw new NullPointerException(); 2694 } 2695 explanationSpec_ = value; 2696 } else { 2697 explanationSpecBuilder_.setMessage(value); 2698 } 2699 bitField0_ |= 0x00000080; 2700 onChanged(); 2701 return this; 2702 } 2703 /** 2704 * 2705 * 2706 * <pre> 2707 * Explanation configuration for this DeployedModel. 2708 * When deploying a Model using 2709 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2710 * this value overrides the value of 2711 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2712 * All fields of 2713 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2714 * are optional in the request. If a field of 2715 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2716 * is not populated, the value of the same field of 2717 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2718 * is inherited. If the corresponding 2719 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2720 * is not populated, all fields of the 2721 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2722 * will be used for the explanation configuration. 2723 * </pre> 2724 * 2725 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2726 */ setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue)2727 public Builder setExplanationSpec( 2728 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { 2729 if (explanationSpecBuilder_ == null) { 2730 explanationSpec_ = builderForValue.build(); 2731 } else { 2732 explanationSpecBuilder_.setMessage(builderForValue.build()); 2733 } 2734 bitField0_ |= 0x00000080; 2735 onChanged(); 2736 return this; 2737 } 2738 /** 2739 * 2740 * 2741 * <pre> 2742 * Explanation configuration for this DeployedModel. 2743 * When deploying a Model using 2744 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2745 * this value overrides the value of 2746 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2747 * All fields of 2748 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2749 * are optional in the request. If a field of 2750 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2751 * is not populated, the value of the same field of 2752 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2753 * is inherited. If the corresponding 2754 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2755 * is not populated, all fields of the 2756 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2757 * will be used for the explanation configuration. 2758 * </pre> 2759 * 2760 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2761 */ mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value)2762 public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { 2763 if (explanationSpecBuilder_ == null) { 2764 if (((bitField0_ & 0x00000080) != 0) 2765 && explanationSpec_ != null 2766 && explanationSpec_ 2767 != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { 2768 getExplanationSpecBuilder().mergeFrom(value); 2769 } else { 2770 explanationSpec_ = value; 2771 } 2772 } else { 2773 explanationSpecBuilder_.mergeFrom(value); 2774 } 2775 bitField0_ |= 0x00000080; 2776 onChanged(); 2777 return this; 2778 } 2779 /** 2780 * 2781 * 2782 * <pre> 2783 * Explanation configuration for this DeployedModel. 2784 * When deploying a Model using 2785 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2786 * this value overrides the value of 2787 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2788 * All fields of 2789 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2790 * are optional in the request. If a field of 2791 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2792 * is not populated, the value of the same field of 2793 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2794 * is inherited. If the corresponding 2795 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2796 * is not populated, all fields of the 2797 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2798 * will be used for the explanation configuration. 2799 * </pre> 2800 * 2801 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2802 */ clearExplanationSpec()2803 public Builder clearExplanationSpec() { 2804 bitField0_ = (bitField0_ & ~0x00000080); 2805 explanationSpec_ = null; 2806 if (explanationSpecBuilder_ != null) { 2807 explanationSpecBuilder_.dispose(); 2808 explanationSpecBuilder_ = null; 2809 } 2810 onChanged(); 2811 return this; 2812 } 2813 /** 2814 * 2815 * 2816 * <pre> 2817 * Explanation configuration for this DeployedModel. 2818 * When deploying a Model using 2819 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2820 * this value overrides the value of 2821 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2822 * All fields of 2823 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2824 * are optional in the request. If a field of 2825 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2826 * is not populated, the value of the same field of 2827 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2828 * is inherited. If the corresponding 2829 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2830 * is not populated, all fields of the 2831 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2832 * will be used for the explanation configuration. 2833 * </pre> 2834 * 2835 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2836 */ getExplanationSpecBuilder()2837 public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { 2838 bitField0_ |= 0x00000080; 2839 onChanged(); 2840 return getExplanationSpecFieldBuilder().getBuilder(); 2841 } 2842 /** 2843 * 2844 * 2845 * <pre> 2846 * Explanation configuration for this DeployedModel. 2847 * When deploying a Model using 2848 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2849 * this value overrides the value of 2850 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2851 * All fields of 2852 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2853 * are optional in the request. If a field of 2854 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2855 * is not populated, the value of the same field of 2856 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2857 * is inherited. If the corresponding 2858 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2859 * is not populated, all fields of the 2860 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2861 * will be used for the explanation configuration. 2862 * </pre> 2863 * 2864 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2865 */ getExplanationSpecOrBuilder()2866 public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { 2867 if (explanationSpecBuilder_ != null) { 2868 return explanationSpecBuilder_.getMessageOrBuilder(); 2869 } else { 2870 return explanationSpec_ == null 2871 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 2872 : explanationSpec_; 2873 } 2874 } 2875 /** 2876 * 2877 * 2878 * <pre> 2879 * Explanation configuration for this DeployedModel. 2880 * When deploying a Model using 2881 * [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], 2882 * this value overrides the value of 2883 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. 2884 * All fields of 2885 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2886 * are optional in the request. If a field of 2887 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2888 * is not populated, the value of the same field of 2889 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2890 * is inherited. If the corresponding 2891 * [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] 2892 * is not populated, all fields of the 2893 * [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] 2894 * will be used for the explanation configuration. 2895 * </pre> 2896 * 2897 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9;</code> 2898 */ 2899 private com.google.protobuf.SingleFieldBuilderV3< 2900 com.google.cloud.aiplatform.v1.ExplanationSpec, 2901 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 2902 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder> getExplanationSpecFieldBuilder()2903 getExplanationSpecFieldBuilder() { 2904 if (explanationSpecBuilder_ == null) { 2905 explanationSpecBuilder_ = 2906 new com.google.protobuf.SingleFieldBuilderV3< 2907 com.google.cloud.aiplatform.v1.ExplanationSpec, 2908 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 2909 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder>( 2910 getExplanationSpec(), getParentForChildren(), isClean()); 2911 explanationSpec_ = null; 2912 } 2913 return explanationSpecBuilder_; 2914 } 2915 2916 private java.lang.Object serviceAccount_ = ""; 2917 /** 2918 * 2919 * 2920 * <pre> 2921 * The service account that the DeployedModel's container runs as. Specify the 2922 * email address of the service account. If this service account is not 2923 * specified, the container runs as a service account that doesn't have access 2924 * to the resource project. 2925 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 2926 * permission on this service account. 2927 * </pre> 2928 * 2929 * <code>string service_account = 11;</code> 2930 * 2931 * @return The serviceAccount. 2932 */ getServiceAccount()2933 public java.lang.String getServiceAccount() { 2934 java.lang.Object ref = serviceAccount_; 2935 if (!(ref instanceof java.lang.String)) { 2936 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2937 java.lang.String s = bs.toStringUtf8(); 2938 serviceAccount_ = s; 2939 return s; 2940 } else { 2941 return (java.lang.String) ref; 2942 } 2943 } 2944 /** 2945 * 2946 * 2947 * <pre> 2948 * The service account that the DeployedModel's container runs as. Specify the 2949 * email address of the service account. If this service account is not 2950 * specified, the container runs as a service account that doesn't have access 2951 * to the resource project. 2952 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 2953 * permission on this service account. 2954 * </pre> 2955 * 2956 * <code>string service_account = 11;</code> 2957 * 2958 * @return The bytes for serviceAccount. 2959 */ getServiceAccountBytes()2960 public com.google.protobuf.ByteString getServiceAccountBytes() { 2961 java.lang.Object ref = serviceAccount_; 2962 if (ref instanceof String) { 2963 com.google.protobuf.ByteString b = 2964 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2965 serviceAccount_ = b; 2966 return b; 2967 } else { 2968 return (com.google.protobuf.ByteString) ref; 2969 } 2970 } 2971 /** 2972 * 2973 * 2974 * <pre> 2975 * The service account that the DeployedModel's container runs as. Specify the 2976 * email address of the service account. If this service account is not 2977 * specified, the container runs as a service account that doesn't have access 2978 * to the resource project. 2979 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 2980 * permission on this service account. 2981 * </pre> 2982 * 2983 * <code>string service_account = 11;</code> 2984 * 2985 * @param value The serviceAccount to set. 2986 * @return This builder for chaining. 2987 */ setServiceAccount(java.lang.String value)2988 public Builder setServiceAccount(java.lang.String value) { 2989 if (value == null) { 2990 throw new NullPointerException(); 2991 } 2992 serviceAccount_ = value; 2993 bitField0_ |= 0x00000100; 2994 onChanged(); 2995 return this; 2996 } 2997 /** 2998 * 2999 * 3000 * <pre> 3001 * The service account that the DeployedModel's container runs as. Specify the 3002 * email address of the service account. If this service account is not 3003 * specified, the container runs as a service account that doesn't have access 3004 * to the resource project. 3005 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 3006 * permission on this service account. 3007 * </pre> 3008 * 3009 * <code>string service_account = 11;</code> 3010 * 3011 * @return This builder for chaining. 3012 */ clearServiceAccount()3013 public Builder clearServiceAccount() { 3014 serviceAccount_ = getDefaultInstance().getServiceAccount(); 3015 bitField0_ = (bitField0_ & ~0x00000100); 3016 onChanged(); 3017 return this; 3018 } 3019 /** 3020 * 3021 * 3022 * <pre> 3023 * The service account that the DeployedModel's container runs as. Specify the 3024 * email address of the service account. If this service account is not 3025 * specified, the container runs as a service account that doesn't have access 3026 * to the resource project. 3027 * Users deploying the Model must have the `iam.serviceAccounts.actAs` 3028 * permission on this service account. 3029 * </pre> 3030 * 3031 * <code>string service_account = 11;</code> 3032 * 3033 * @param value The bytes for serviceAccount to set. 3034 * @return This builder for chaining. 3035 */ setServiceAccountBytes(com.google.protobuf.ByteString value)3036 public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { 3037 if (value == null) { 3038 throw new NullPointerException(); 3039 } 3040 checkByteStringIsUtf8(value); 3041 serviceAccount_ = value; 3042 bitField0_ |= 0x00000100; 3043 onChanged(); 3044 return this; 3045 } 3046 3047 private boolean disableContainerLogging_; 3048 /** 3049 * 3050 * 3051 * <pre> 3052 * For custom-trained Models and AutoML Tabular Models, the container of the 3053 * DeployedModel instances will send `stderr` and `stdout` streams to 3054 * Cloud Logging by default. Please note that the logs incur cost, 3055 * which are subject to [Cloud Logging 3056 * pricing](https://cloud.google.com/logging/pricing). 3057 * User can disable container logging by setting this flag to true. 3058 * </pre> 3059 * 3060 * <code>bool disable_container_logging = 15;</code> 3061 * 3062 * @return The disableContainerLogging. 3063 */ 3064 @java.lang.Override getDisableContainerLogging()3065 public boolean getDisableContainerLogging() { 3066 return disableContainerLogging_; 3067 } 3068 /** 3069 * 3070 * 3071 * <pre> 3072 * For custom-trained Models and AutoML Tabular Models, the container of the 3073 * DeployedModel instances will send `stderr` and `stdout` streams to 3074 * Cloud Logging by default. Please note that the logs incur cost, 3075 * which are subject to [Cloud Logging 3076 * pricing](https://cloud.google.com/logging/pricing). 3077 * User can disable container logging by setting this flag to true. 3078 * </pre> 3079 * 3080 * <code>bool disable_container_logging = 15;</code> 3081 * 3082 * @param value The disableContainerLogging to set. 3083 * @return This builder for chaining. 3084 */ setDisableContainerLogging(boolean value)3085 public Builder setDisableContainerLogging(boolean value) { 3086 3087 disableContainerLogging_ = value; 3088 bitField0_ |= 0x00000200; 3089 onChanged(); 3090 return this; 3091 } 3092 /** 3093 * 3094 * 3095 * <pre> 3096 * For custom-trained Models and AutoML Tabular Models, the container of the 3097 * DeployedModel instances will send `stderr` and `stdout` streams to 3098 * Cloud Logging by default. Please note that the logs incur cost, 3099 * which are subject to [Cloud Logging 3100 * pricing](https://cloud.google.com/logging/pricing). 3101 * User can disable container logging by setting this flag to true. 3102 * </pre> 3103 * 3104 * <code>bool disable_container_logging = 15;</code> 3105 * 3106 * @return This builder for chaining. 3107 */ clearDisableContainerLogging()3108 public Builder clearDisableContainerLogging() { 3109 bitField0_ = (bitField0_ & ~0x00000200); 3110 disableContainerLogging_ = false; 3111 onChanged(); 3112 return this; 3113 } 3114 3115 private boolean enableAccessLogging_; 3116 /** 3117 * 3118 * 3119 * <pre> 3120 * If true, online prediction access logs are sent to Cloud 3121 * Logging. 3122 * These logs are like standard server access logs, containing 3123 * information like timestamp and latency for each prediction request. 3124 * Note that logs may incur a cost, especially if your project 3125 * receives prediction requests at a high queries per second rate (QPS). 3126 * Estimate your costs before enabling this option. 3127 * </pre> 3128 * 3129 * <code>bool enable_access_logging = 13;</code> 3130 * 3131 * @return The enableAccessLogging. 3132 */ 3133 @java.lang.Override getEnableAccessLogging()3134 public boolean getEnableAccessLogging() { 3135 return enableAccessLogging_; 3136 } 3137 /** 3138 * 3139 * 3140 * <pre> 3141 * If true, online prediction access logs are sent to Cloud 3142 * Logging. 3143 * These logs are like standard server access logs, containing 3144 * information like timestamp and latency for each prediction request. 3145 * Note that logs may incur a cost, especially if your project 3146 * receives prediction requests at a high queries per second rate (QPS). 3147 * Estimate your costs before enabling this option. 3148 * </pre> 3149 * 3150 * <code>bool enable_access_logging = 13;</code> 3151 * 3152 * @param value The enableAccessLogging to set. 3153 * @return This builder for chaining. 3154 */ setEnableAccessLogging(boolean value)3155 public Builder setEnableAccessLogging(boolean value) { 3156 3157 enableAccessLogging_ = value; 3158 bitField0_ |= 0x00000400; 3159 onChanged(); 3160 return this; 3161 } 3162 /** 3163 * 3164 * 3165 * <pre> 3166 * If true, online prediction access logs are sent to Cloud 3167 * Logging. 3168 * These logs are like standard server access logs, containing 3169 * information like timestamp and latency for each prediction request. 3170 * Note that logs may incur a cost, especially if your project 3171 * receives prediction requests at a high queries per second rate (QPS). 3172 * Estimate your costs before enabling this option. 3173 * </pre> 3174 * 3175 * <code>bool enable_access_logging = 13;</code> 3176 * 3177 * @return This builder for chaining. 3178 */ clearEnableAccessLogging()3179 public Builder clearEnableAccessLogging() { 3180 bitField0_ = (bitField0_ & ~0x00000400); 3181 enableAccessLogging_ = false; 3182 onChanged(); 3183 return this; 3184 } 3185 3186 private com.google.cloud.aiplatform.v1.PrivateEndpoints privateEndpoints_; 3187 private com.google.protobuf.SingleFieldBuilderV3< 3188 com.google.cloud.aiplatform.v1.PrivateEndpoints, 3189 com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder, 3190 com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder> 3191 privateEndpointsBuilder_; 3192 /** 3193 * 3194 * 3195 * <pre> 3196 * Output only. Provide paths for users to send predict/explain/health 3197 * requests directly to the deployed model services running on Cloud via 3198 * private services access. This field is populated if 3199 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3200 * </pre> 3201 * 3202 * <code> 3203 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3204 * </code> 3205 * 3206 * @return Whether the privateEndpoints field is set. 3207 */ hasPrivateEndpoints()3208 public boolean hasPrivateEndpoints() { 3209 return ((bitField0_ & 0x00000800) != 0); 3210 } 3211 /** 3212 * 3213 * 3214 * <pre> 3215 * Output only. Provide paths for users to send predict/explain/health 3216 * requests directly to the deployed model services running on Cloud via 3217 * private services access. This field is populated if 3218 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3219 * </pre> 3220 * 3221 * <code> 3222 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3223 * </code> 3224 * 3225 * @return The privateEndpoints. 3226 */ getPrivateEndpoints()3227 public com.google.cloud.aiplatform.v1.PrivateEndpoints getPrivateEndpoints() { 3228 if (privateEndpointsBuilder_ == null) { 3229 return privateEndpoints_ == null 3230 ? com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance() 3231 : privateEndpoints_; 3232 } else { 3233 return privateEndpointsBuilder_.getMessage(); 3234 } 3235 } 3236 /** 3237 * 3238 * 3239 * <pre> 3240 * Output only. Provide paths for users to send predict/explain/health 3241 * requests directly to the deployed model services running on Cloud via 3242 * private services access. This field is populated if 3243 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3244 * </pre> 3245 * 3246 * <code> 3247 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3248 * </code> 3249 */ setPrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoints value)3250 public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoints value) { 3251 if (privateEndpointsBuilder_ == null) { 3252 if (value == null) { 3253 throw new NullPointerException(); 3254 } 3255 privateEndpoints_ = value; 3256 } else { 3257 privateEndpointsBuilder_.setMessage(value); 3258 } 3259 bitField0_ |= 0x00000800; 3260 onChanged(); 3261 return this; 3262 } 3263 /** 3264 * 3265 * 3266 * <pre> 3267 * Output only. Provide paths for users to send predict/explain/health 3268 * requests directly to the deployed model services running on Cloud via 3269 * private services access. This field is populated if 3270 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3271 * </pre> 3272 * 3273 * <code> 3274 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3275 * </code> 3276 */ setPrivateEndpoints( com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder builderForValue)3277 public Builder setPrivateEndpoints( 3278 com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder builderForValue) { 3279 if (privateEndpointsBuilder_ == null) { 3280 privateEndpoints_ = builderForValue.build(); 3281 } else { 3282 privateEndpointsBuilder_.setMessage(builderForValue.build()); 3283 } 3284 bitField0_ |= 0x00000800; 3285 onChanged(); 3286 return this; 3287 } 3288 /** 3289 * 3290 * 3291 * <pre> 3292 * Output only. Provide paths for users to send predict/explain/health 3293 * requests directly to the deployed model services running on Cloud via 3294 * private services access. This field is populated if 3295 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3296 * </pre> 3297 * 3298 * <code> 3299 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3300 * </code> 3301 */ mergePrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoints value)3302 public Builder mergePrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoints value) { 3303 if (privateEndpointsBuilder_ == null) { 3304 if (((bitField0_ & 0x00000800) != 0) 3305 && privateEndpoints_ != null 3306 && privateEndpoints_ 3307 != com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance()) { 3308 getPrivateEndpointsBuilder().mergeFrom(value); 3309 } else { 3310 privateEndpoints_ = value; 3311 } 3312 } else { 3313 privateEndpointsBuilder_.mergeFrom(value); 3314 } 3315 bitField0_ |= 0x00000800; 3316 onChanged(); 3317 return this; 3318 } 3319 /** 3320 * 3321 * 3322 * <pre> 3323 * Output only. Provide paths for users to send predict/explain/health 3324 * requests directly to the deployed model services running on Cloud via 3325 * private services access. This field is populated if 3326 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3327 * </pre> 3328 * 3329 * <code> 3330 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3331 * </code> 3332 */ clearPrivateEndpoints()3333 public Builder clearPrivateEndpoints() { 3334 bitField0_ = (bitField0_ & ~0x00000800); 3335 privateEndpoints_ = null; 3336 if (privateEndpointsBuilder_ != null) { 3337 privateEndpointsBuilder_.dispose(); 3338 privateEndpointsBuilder_ = null; 3339 } 3340 onChanged(); 3341 return this; 3342 } 3343 /** 3344 * 3345 * 3346 * <pre> 3347 * Output only. Provide paths for users to send predict/explain/health 3348 * requests directly to the deployed model services running on Cloud via 3349 * private services access. This field is populated if 3350 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3351 * </pre> 3352 * 3353 * <code> 3354 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3355 * </code> 3356 */ getPrivateEndpointsBuilder()3357 public com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder getPrivateEndpointsBuilder() { 3358 bitField0_ |= 0x00000800; 3359 onChanged(); 3360 return getPrivateEndpointsFieldBuilder().getBuilder(); 3361 } 3362 /** 3363 * 3364 * 3365 * <pre> 3366 * Output only. Provide paths for users to send predict/explain/health 3367 * requests directly to the deployed model services running on Cloud via 3368 * private services access. This field is populated if 3369 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3370 * </pre> 3371 * 3372 * <code> 3373 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3374 * </code> 3375 */ getPrivateEndpointsOrBuilder()3376 public com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { 3377 if (privateEndpointsBuilder_ != null) { 3378 return privateEndpointsBuilder_.getMessageOrBuilder(); 3379 } else { 3380 return privateEndpoints_ == null 3381 ? com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance() 3382 : privateEndpoints_; 3383 } 3384 } 3385 /** 3386 * 3387 * 3388 * <pre> 3389 * Output only. Provide paths for users to send predict/explain/health 3390 * requests directly to the deployed model services running on Cloud via 3391 * private services access. This field is populated if 3392 * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. 3393 * </pre> 3394 * 3395 * <code> 3396 * .google.cloud.aiplatform.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3397 * </code> 3398 */ 3399 private com.google.protobuf.SingleFieldBuilderV3< 3400 com.google.cloud.aiplatform.v1.PrivateEndpoints, 3401 com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder, 3402 com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder> getPrivateEndpointsFieldBuilder()3403 getPrivateEndpointsFieldBuilder() { 3404 if (privateEndpointsBuilder_ == null) { 3405 privateEndpointsBuilder_ = 3406 new com.google.protobuf.SingleFieldBuilderV3< 3407 com.google.cloud.aiplatform.v1.PrivateEndpoints, 3408 com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder, 3409 com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder>( 3410 getPrivateEndpoints(), getParentForChildren(), isClean()); 3411 privateEndpoints_ = null; 3412 } 3413 return privateEndpointsBuilder_; 3414 } 3415 3416 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3417 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3418 return super.setUnknownFields(unknownFields); 3419 } 3420 3421 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3422 public final Builder mergeUnknownFields( 3423 final com.google.protobuf.UnknownFieldSet unknownFields) { 3424 return super.mergeUnknownFields(unknownFields); 3425 } 3426 3427 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DeployedModel) 3428 } 3429 3430 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeployedModel) 3431 private static final com.google.cloud.aiplatform.v1.DeployedModel DEFAULT_INSTANCE; 3432 3433 static { 3434 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeployedModel(); 3435 } 3436 getDefaultInstance()3437 public static com.google.cloud.aiplatform.v1.DeployedModel getDefaultInstance() { 3438 return DEFAULT_INSTANCE; 3439 } 3440 3441 private static final com.google.protobuf.Parser<DeployedModel> PARSER = 3442 new com.google.protobuf.AbstractParser<DeployedModel>() { 3443 @java.lang.Override 3444 public DeployedModel parsePartialFrom( 3445 com.google.protobuf.CodedInputStream input, 3446 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3447 throws com.google.protobuf.InvalidProtocolBufferException { 3448 Builder builder = newBuilder(); 3449 try { 3450 builder.mergeFrom(input, extensionRegistry); 3451 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3452 throw e.setUnfinishedMessage(builder.buildPartial()); 3453 } catch (com.google.protobuf.UninitializedMessageException e) { 3454 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3455 } catch (java.io.IOException e) { 3456 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3457 .setUnfinishedMessage(builder.buildPartial()); 3458 } 3459 return builder.buildPartial(); 3460 } 3461 }; 3462 parser()3463 public static com.google.protobuf.Parser<DeployedModel> parser() { 3464 return PARSER; 3465 } 3466 3467 @java.lang.Override getParserForType()3468 public com.google.protobuf.Parser<DeployedModel> getParserForType() { 3469 return PARSER; 3470 } 3471 3472 @java.lang.Override getDefaultInstanceForType()3473 public com.google.cloud.aiplatform.v1.DeployedModel getDefaultInstanceForType() { 3474 return DEFAULT_INSTANCE; 3475 } 3476 } 3477