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/model.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Contains the schemata used in Model's predictions and explanations via 26 * [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], 27 * [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain] 28 * and [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. 29 * </pre> 30 * 31 * Protobuf type {@code google.cloud.aiplatform.v1.PredictSchemata} 32 */ 33 public final class PredictSchemata extends com.google.protobuf.GeneratedMessageV3 34 implements 35 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PredictSchemata) 36 PredictSchemataOrBuilder { 37 private static final long serialVersionUID = 0L; 38 // Use PredictSchemata.newBuilder() to construct. PredictSchemata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39 private PredictSchemata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 PredictSchemata()43 private PredictSchemata() { 44 instanceSchemaUri_ = ""; 45 parametersSchemaUri_ = ""; 46 predictionSchemaUri_ = ""; 47 } 48 49 @java.lang.Override 50 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)51 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 52 return new PredictSchemata(); 53 } 54 55 @java.lang.Override getUnknownFields()56 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 57 return this.unknownFields; 58 } 59 getDescriptor()60 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 61 return com.google.cloud.aiplatform.v1.ModelProto 62 .internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor; 63 } 64 65 @java.lang.Override 66 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()67 internalGetFieldAccessorTable() { 68 return com.google.cloud.aiplatform.v1.ModelProto 69 .internal_static_google_cloud_aiplatform_v1_PredictSchemata_fieldAccessorTable 70 .ensureFieldAccessorsInitialized( 71 com.google.cloud.aiplatform.v1.PredictSchemata.class, 72 com.google.cloud.aiplatform.v1.PredictSchemata.Builder.class); 73 } 74 75 public static final int INSTANCE_SCHEMA_URI_FIELD_NUMBER = 1; 76 77 @SuppressWarnings("serial") 78 private volatile java.lang.Object instanceSchemaUri_ = ""; 79 /** 80 * 81 * 82 * <pre> 83 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 84 * the format of a single instance, which are used in 85 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 86 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 87 * and 88 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 89 * The schema is defined as an OpenAPI 3.0.2 [Schema 90 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 91 * AutoML Models always have this field populated by Vertex AI. 92 * Note: The URI given on output will be immutable and probably different, 93 * including the URI scheme, than the one given on input. The output URI will 94 * point to a location where the user only has a read access. 95 * </pre> 96 * 97 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 98 * 99 * @return The instanceSchemaUri. 100 */ 101 @java.lang.Override getInstanceSchemaUri()102 public java.lang.String getInstanceSchemaUri() { 103 java.lang.Object ref = instanceSchemaUri_; 104 if (ref instanceof java.lang.String) { 105 return (java.lang.String) ref; 106 } else { 107 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 108 java.lang.String s = bs.toStringUtf8(); 109 instanceSchemaUri_ = s; 110 return s; 111 } 112 } 113 /** 114 * 115 * 116 * <pre> 117 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 118 * the format of a single instance, which are used in 119 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 120 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 121 * and 122 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 123 * The schema is defined as an OpenAPI 3.0.2 [Schema 124 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 125 * AutoML Models always have this field populated by Vertex AI. 126 * Note: The URI given on output will be immutable and probably different, 127 * including the URI scheme, than the one given on input. The output URI will 128 * point to a location where the user only has a read access. 129 * </pre> 130 * 131 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 132 * 133 * @return The bytes for instanceSchemaUri. 134 */ 135 @java.lang.Override getInstanceSchemaUriBytes()136 public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { 137 java.lang.Object ref = instanceSchemaUri_; 138 if (ref instanceof java.lang.String) { 139 com.google.protobuf.ByteString b = 140 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 141 instanceSchemaUri_ = b; 142 return b; 143 } else { 144 return (com.google.protobuf.ByteString) ref; 145 } 146 } 147 148 public static final int PARAMETERS_SCHEMA_URI_FIELD_NUMBER = 2; 149 150 @SuppressWarnings("serial") 151 private volatile java.lang.Object parametersSchemaUri_ = ""; 152 /** 153 * 154 * 155 * <pre> 156 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 157 * the parameters of prediction and explanation via 158 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 159 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 160 * and 161 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 162 * The schema is defined as an OpenAPI 3.0.2 [Schema 163 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 164 * AutoML Models always have this field populated by Vertex AI, if no 165 * parameters are supported, then it is set to an empty string. 166 * Note: The URI given on output will be immutable and probably different, 167 * including the URI scheme, than the one given on input. The output URI will 168 * point to a location where the user only has a read access. 169 * </pre> 170 * 171 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 172 * 173 * @return The parametersSchemaUri. 174 */ 175 @java.lang.Override getParametersSchemaUri()176 public java.lang.String getParametersSchemaUri() { 177 java.lang.Object ref = parametersSchemaUri_; 178 if (ref instanceof java.lang.String) { 179 return (java.lang.String) ref; 180 } else { 181 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 182 java.lang.String s = bs.toStringUtf8(); 183 parametersSchemaUri_ = s; 184 return s; 185 } 186 } 187 /** 188 * 189 * 190 * <pre> 191 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 192 * the parameters of prediction and explanation via 193 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 194 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 195 * and 196 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 197 * The schema is defined as an OpenAPI 3.0.2 [Schema 198 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 199 * AutoML Models always have this field populated by Vertex AI, if no 200 * parameters are supported, then it is set to an empty string. 201 * Note: The URI given on output will be immutable and probably different, 202 * including the URI scheme, than the one given on input. The output URI will 203 * point to a location where the user only has a read access. 204 * </pre> 205 * 206 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 207 * 208 * @return The bytes for parametersSchemaUri. 209 */ 210 @java.lang.Override getParametersSchemaUriBytes()211 public com.google.protobuf.ByteString getParametersSchemaUriBytes() { 212 java.lang.Object ref = parametersSchemaUri_; 213 if (ref instanceof java.lang.String) { 214 com.google.protobuf.ByteString b = 215 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 216 parametersSchemaUri_ = b; 217 return b; 218 } else { 219 return (com.google.protobuf.ByteString) ref; 220 } 221 } 222 223 public static final int PREDICTION_SCHEMA_URI_FIELD_NUMBER = 3; 224 225 @SuppressWarnings("serial") 226 private volatile java.lang.Object predictionSchemaUri_ = ""; 227 /** 228 * 229 * 230 * <pre> 231 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 232 * the format of a single prediction produced by this Model, which are 233 * returned via 234 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 235 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 236 * and 237 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 238 * The schema is defined as an OpenAPI 3.0.2 [Schema 239 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 240 * AutoML Models always have this field populated by Vertex AI. 241 * Note: The URI given on output will be immutable and probably different, 242 * including the URI scheme, than the one given on input. The output URI will 243 * point to a location where the user only has a read access. 244 * </pre> 245 * 246 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 247 * 248 * @return The predictionSchemaUri. 249 */ 250 @java.lang.Override getPredictionSchemaUri()251 public java.lang.String getPredictionSchemaUri() { 252 java.lang.Object ref = predictionSchemaUri_; 253 if (ref instanceof java.lang.String) { 254 return (java.lang.String) ref; 255 } else { 256 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 257 java.lang.String s = bs.toStringUtf8(); 258 predictionSchemaUri_ = s; 259 return s; 260 } 261 } 262 /** 263 * 264 * 265 * <pre> 266 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 267 * the format of a single prediction produced by this Model, which are 268 * returned via 269 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 270 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 271 * and 272 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 273 * The schema is defined as an OpenAPI 3.0.2 [Schema 274 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 275 * AutoML Models always have this field populated by Vertex AI. 276 * Note: The URI given on output will be immutable and probably different, 277 * including the URI scheme, than the one given on input. The output URI will 278 * point to a location where the user only has a read access. 279 * </pre> 280 * 281 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 282 * 283 * @return The bytes for predictionSchemaUri. 284 */ 285 @java.lang.Override getPredictionSchemaUriBytes()286 public com.google.protobuf.ByteString getPredictionSchemaUriBytes() { 287 java.lang.Object ref = predictionSchemaUri_; 288 if (ref instanceof java.lang.String) { 289 com.google.protobuf.ByteString b = 290 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 291 predictionSchemaUri_ = b; 292 return b; 293 } else { 294 return (com.google.protobuf.ByteString) ref; 295 } 296 } 297 298 private byte memoizedIsInitialized = -1; 299 300 @java.lang.Override isInitialized()301 public final boolean isInitialized() { 302 byte isInitialized = memoizedIsInitialized; 303 if (isInitialized == 1) return true; 304 if (isInitialized == 0) return false; 305 306 memoizedIsInitialized = 1; 307 return true; 308 } 309 310 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)311 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 312 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceSchemaUri_)) { 313 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceSchemaUri_); 314 } 315 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parametersSchemaUri_)) { 316 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parametersSchemaUri_); 317 } 318 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predictionSchemaUri_)) { 319 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, predictionSchemaUri_); 320 } 321 getUnknownFields().writeTo(output); 322 } 323 324 @java.lang.Override getSerializedSize()325 public int getSerializedSize() { 326 int size = memoizedSize; 327 if (size != -1) return size; 328 329 size = 0; 330 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceSchemaUri_)) { 331 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceSchemaUri_); 332 } 333 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parametersSchemaUri_)) { 334 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parametersSchemaUri_); 335 } 336 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predictionSchemaUri_)) { 337 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, predictionSchemaUri_); 338 } 339 size += getUnknownFields().getSerializedSize(); 340 memoizedSize = size; 341 return size; 342 } 343 344 @java.lang.Override equals(final java.lang.Object obj)345 public boolean equals(final java.lang.Object obj) { 346 if (obj == this) { 347 return true; 348 } 349 if (!(obj instanceof com.google.cloud.aiplatform.v1.PredictSchemata)) { 350 return super.equals(obj); 351 } 352 com.google.cloud.aiplatform.v1.PredictSchemata other = 353 (com.google.cloud.aiplatform.v1.PredictSchemata) obj; 354 355 if (!getInstanceSchemaUri().equals(other.getInstanceSchemaUri())) return false; 356 if (!getParametersSchemaUri().equals(other.getParametersSchemaUri())) return false; 357 if (!getPredictionSchemaUri().equals(other.getPredictionSchemaUri())) return false; 358 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 359 return true; 360 } 361 362 @java.lang.Override hashCode()363 public int hashCode() { 364 if (memoizedHashCode != 0) { 365 return memoizedHashCode; 366 } 367 int hash = 41; 368 hash = (19 * hash) + getDescriptor().hashCode(); 369 hash = (37 * hash) + INSTANCE_SCHEMA_URI_FIELD_NUMBER; 370 hash = (53 * hash) + getInstanceSchemaUri().hashCode(); 371 hash = (37 * hash) + PARAMETERS_SCHEMA_URI_FIELD_NUMBER; 372 hash = (53 * hash) + getParametersSchemaUri().hashCode(); 373 hash = (37 * hash) + PREDICTION_SCHEMA_URI_FIELD_NUMBER; 374 hash = (53 * hash) + getPredictionSchemaUri().hashCode(); 375 hash = (29 * hash) + getUnknownFields().hashCode(); 376 memoizedHashCode = hash; 377 return hash; 378 } 379 parseFrom(java.nio.ByteBuffer data)380 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom(java.nio.ByteBuffer data) 381 throws com.google.protobuf.InvalidProtocolBufferException { 382 return PARSER.parseFrom(data); 383 } 384 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)385 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 386 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 387 throws com.google.protobuf.InvalidProtocolBufferException { 388 return PARSER.parseFrom(data, extensionRegistry); 389 } 390 parseFrom( com.google.protobuf.ByteString data)391 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 392 com.google.protobuf.ByteString data) 393 throws com.google.protobuf.InvalidProtocolBufferException { 394 return PARSER.parseFrom(data); 395 } 396 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)397 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 398 com.google.protobuf.ByteString data, 399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws com.google.protobuf.InvalidProtocolBufferException { 401 return PARSER.parseFrom(data, extensionRegistry); 402 } 403 parseFrom(byte[] data)404 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom(byte[] data) 405 throws com.google.protobuf.InvalidProtocolBufferException { 406 return PARSER.parseFrom(data); 407 } 408 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)409 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 410 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 411 throws com.google.protobuf.InvalidProtocolBufferException { 412 return PARSER.parseFrom(data, extensionRegistry); 413 } 414 parseFrom(java.io.InputStream input)415 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom(java.io.InputStream input) 416 throws java.io.IOException { 417 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 418 } 419 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)420 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 421 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 422 throws java.io.IOException { 423 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 424 PARSER, input, extensionRegistry); 425 } 426 parseDelimitedFrom( java.io.InputStream input)427 public static com.google.cloud.aiplatform.v1.PredictSchemata parseDelimitedFrom( 428 java.io.InputStream input) throws java.io.IOException { 429 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 430 } 431 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)432 public static com.google.cloud.aiplatform.v1.PredictSchemata parseDelimitedFrom( 433 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 434 throws java.io.IOException { 435 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 436 PARSER, input, extensionRegistry); 437 } 438 parseFrom( com.google.protobuf.CodedInputStream input)439 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 440 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 441 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 442 } 443 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)444 public static com.google.cloud.aiplatform.v1.PredictSchemata parseFrom( 445 com.google.protobuf.CodedInputStream input, 446 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 447 throws java.io.IOException { 448 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 449 PARSER, input, extensionRegistry); 450 } 451 452 @java.lang.Override newBuilderForType()453 public Builder newBuilderForType() { 454 return newBuilder(); 455 } 456 newBuilder()457 public static Builder newBuilder() { 458 return DEFAULT_INSTANCE.toBuilder(); 459 } 460 newBuilder(com.google.cloud.aiplatform.v1.PredictSchemata prototype)461 public static Builder newBuilder(com.google.cloud.aiplatform.v1.PredictSchemata prototype) { 462 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 463 } 464 465 @java.lang.Override toBuilder()466 public Builder toBuilder() { 467 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 468 } 469 470 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)471 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 472 Builder builder = new Builder(parent); 473 return builder; 474 } 475 /** 476 * 477 * 478 * <pre> 479 * Contains the schemata used in Model's predictions and explanations via 480 * [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], 481 * [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain] 482 * and [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. 483 * </pre> 484 * 485 * Protobuf type {@code google.cloud.aiplatform.v1.PredictSchemata} 486 */ 487 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 488 implements 489 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PredictSchemata) 490 com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder { getDescriptor()491 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 492 return com.google.cloud.aiplatform.v1.ModelProto 493 .internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor; 494 } 495 496 @java.lang.Override 497 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()498 internalGetFieldAccessorTable() { 499 return com.google.cloud.aiplatform.v1.ModelProto 500 .internal_static_google_cloud_aiplatform_v1_PredictSchemata_fieldAccessorTable 501 .ensureFieldAccessorsInitialized( 502 com.google.cloud.aiplatform.v1.PredictSchemata.class, 503 com.google.cloud.aiplatform.v1.PredictSchemata.Builder.class); 504 } 505 506 // Construct using com.google.cloud.aiplatform.v1.PredictSchemata.newBuilder() Builder()507 private Builder() {} 508 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)509 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 510 super(parent); 511 } 512 513 @java.lang.Override clear()514 public Builder clear() { 515 super.clear(); 516 bitField0_ = 0; 517 instanceSchemaUri_ = ""; 518 parametersSchemaUri_ = ""; 519 predictionSchemaUri_ = ""; 520 return this; 521 } 522 523 @java.lang.Override getDescriptorForType()524 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 525 return com.google.cloud.aiplatform.v1.ModelProto 526 .internal_static_google_cloud_aiplatform_v1_PredictSchemata_descriptor; 527 } 528 529 @java.lang.Override getDefaultInstanceForType()530 public com.google.cloud.aiplatform.v1.PredictSchemata getDefaultInstanceForType() { 531 return com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance(); 532 } 533 534 @java.lang.Override build()535 public com.google.cloud.aiplatform.v1.PredictSchemata build() { 536 com.google.cloud.aiplatform.v1.PredictSchemata result = buildPartial(); 537 if (!result.isInitialized()) { 538 throw newUninitializedMessageException(result); 539 } 540 return result; 541 } 542 543 @java.lang.Override buildPartial()544 public com.google.cloud.aiplatform.v1.PredictSchemata buildPartial() { 545 com.google.cloud.aiplatform.v1.PredictSchemata result = 546 new com.google.cloud.aiplatform.v1.PredictSchemata(this); 547 if (bitField0_ != 0) { 548 buildPartial0(result); 549 } 550 onBuilt(); 551 return result; 552 } 553 buildPartial0(com.google.cloud.aiplatform.v1.PredictSchemata result)554 private void buildPartial0(com.google.cloud.aiplatform.v1.PredictSchemata result) { 555 int from_bitField0_ = bitField0_; 556 if (((from_bitField0_ & 0x00000001) != 0)) { 557 result.instanceSchemaUri_ = instanceSchemaUri_; 558 } 559 if (((from_bitField0_ & 0x00000002) != 0)) { 560 result.parametersSchemaUri_ = parametersSchemaUri_; 561 } 562 if (((from_bitField0_ & 0x00000004) != 0)) { 563 result.predictionSchemaUri_ = predictionSchemaUri_; 564 } 565 } 566 567 @java.lang.Override clone()568 public Builder clone() { 569 return super.clone(); 570 } 571 572 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)573 public Builder setField( 574 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 575 return super.setField(field, value); 576 } 577 578 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)579 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 580 return super.clearField(field); 581 } 582 583 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)584 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 585 return super.clearOneof(oneof); 586 } 587 588 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)589 public Builder setRepeatedField( 590 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 591 return super.setRepeatedField(field, index, value); 592 } 593 594 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)595 public Builder addRepeatedField( 596 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 597 return super.addRepeatedField(field, value); 598 } 599 600 @java.lang.Override mergeFrom(com.google.protobuf.Message other)601 public Builder mergeFrom(com.google.protobuf.Message other) { 602 if (other instanceof com.google.cloud.aiplatform.v1.PredictSchemata) { 603 return mergeFrom((com.google.cloud.aiplatform.v1.PredictSchemata) other); 604 } else { 605 super.mergeFrom(other); 606 return this; 607 } 608 } 609 mergeFrom(com.google.cloud.aiplatform.v1.PredictSchemata other)610 public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredictSchemata other) { 611 if (other == com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance()) return this; 612 if (!other.getInstanceSchemaUri().isEmpty()) { 613 instanceSchemaUri_ = other.instanceSchemaUri_; 614 bitField0_ |= 0x00000001; 615 onChanged(); 616 } 617 if (!other.getParametersSchemaUri().isEmpty()) { 618 parametersSchemaUri_ = other.parametersSchemaUri_; 619 bitField0_ |= 0x00000002; 620 onChanged(); 621 } 622 if (!other.getPredictionSchemaUri().isEmpty()) { 623 predictionSchemaUri_ = other.predictionSchemaUri_; 624 bitField0_ |= 0x00000004; 625 onChanged(); 626 } 627 this.mergeUnknownFields(other.getUnknownFields()); 628 onChanged(); 629 return this; 630 } 631 632 @java.lang.Override isInitialized()633 public final boolean isInitialized() { 634 return true; 635 } 636 637 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)638 public Builder mergeFrom( 639 com.google.protobuf.CodedInputStream input, 640 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 641 throws java.io.IOException { 642 if (extensionRegistry == null) { 643 throw new java.lang.NullPointerException(); 644 } 645 try { 646 boolean done = false; 647 while (!done) { 648 int tag = input.readTag(); 649 switch (tag) { 650 case 0: 651 done = true; 652 break; 653 case 10: 654 { 655 instanceSchemaUri_ = input.readStringRequireUtf8(); 656 bitField0_ |= 0x00000001; 657 break; 658 } // case 10 659 case 18: 660 { 661 parametersSchemaUri_ = input.readStringRequireUtf8(); 662 bitField0_ |= 0x00000002; 663 break; 664 } // case 18 665 case 26: 666 { 667 predictionSchemaUri_ = input.readStringRequireUtf8(); 668 bitField0_ |= 0x00000004; 669 break; 670 } // case 26 671 default: 672 { 673 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 674 done = true; // was an endgroup tag 675 } 676 break; 677 } // default: 678 } // switch (tag) 679 } // while (!done) 680 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 681 throw e.unwrapIOException(); 682 } finally { 683 onChanged(); 684 } // finally 685 return this; 686 } 687 688 private int bitField0_; 689 690 private java.lang.Object instanceSchemaUri_ = ""; 691 /** 692 * 693 * 694 * <pre> 695 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 696 * the format of a single instance, which are used in 697 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 698 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 699 * and 700 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 701 * The schema is defined as an OpenAPI 3.0.2 [Schema 702 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 703 * AutoML Models always have this field populated by Vertex AI. 704 * Note: The URI given on output will be immutable and probably different, 705 * including the URI scheme, than the one given on input. The output URI will 706 * point to a location where the user only has a read access. 707 * </pre> 708 * 709 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 710 * 711 * @return The instanceSchemaUri. 712 */ getInstanceSchemaUri()713 public java.lang.String getInstanceSchemaUri() { 714 java.lang.Object ref = instanceSchemaUri_; 715 if (!(ref instanceof java.lang.String)) { 716 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 717 java.lang.String s = bs.toStringUtf8(); 718 instanceSchemaUri_ = s; 719 return s; 720 } else { 721 return (java.lang.String) ref; 722 } 723 } 724 /** 725 * 726 * 727 * <pre> 728 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 729 * the format of a single instance, which are used in 730 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 731 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 732 * and 733 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 734 * The schema is defined as an OpenAPI 3.0.2 [Schema 735 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 736 * AutoML Models always have this field populated by Vertex AI. 737 * Note: The URI given on output will be immutable and probably different, 738 * including the URI scheme, than the one given on input. The output URI will 739 * point to a location where the user only has a read access. 740 * </pre> 741 * 742 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 743 * 744 * @return The bytes for instanceSchemaUri. 745 */ getInstanceSchemaUriBytes()746 public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { 747 java.lang.Object ref = instanceSchemaUri_; 748 if (ref instanceof String) { 749 com.google.protobuf.ByteString b = 750 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 751 instanceSchemaUri_ = b; 752 return b; 753 } else { 754 return (com.google.protobuf.ByteString) ref; 755 } 756 } 757 /** 758 * 759 * 760 * <pre> 761 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 762 * the format of a single instance, which are used in 763 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 764 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 765 * and 766 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 767 * The schema is defined as an OpenAPI 3.0.2 [Schema 768 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 769 * AutoML Models always have this field populated by Vertex AI. 770 * Note: The URI given on output will be immutable and probably different, 771 * including the URI scheme, than the one given on input. The output URI will 772 * point to a location where the user only has a read access. 773 * </pre> 774 * 775 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 776 * 777 * @param value The instanceSchemaUri to set. 778 * @return This builder for chaining. 779 */ setInstanceSchemaUri(java.lang.String value)780 public Builder setInstanceSchemaUri(java.lang.String value) { 781 if (value == null) { 782 throw new NullPointerException(); 783 } 784 instanceSchemaUri_ = value; 785 bitField0_ |= 0x00000001; 786 onChanged(); 787 return this; 788 } 789 /** 790 * 791 * 792 * <pre> 793 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 794 * the format of a single instance, which are used in 795 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 796 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 797 * and 798 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 799 * The schema is defined as an OpenAPI 3.0.2 [Schema 800 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 801 * AutoML Models always have this field populated by Vertex AI. 802 * Note: The URI given on output will be immutable and probably different, 803 * including the URI scheme, than the one given on input. The output URI will 804 * point to a location where the user only has a read access. 805 * </pre> 806 * 807 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 808 * 809 * @return This builder for chaining. 810 */ clearInstanceSchemaUri()811 public Builder clearInstanceSchemaUri() { 812 instanceSchemaUri_ = getDefaultInstance().getInstanceSchemaUri(); 813 bitField0_ = (bitField0_ & ~0x00000001); 814 onChanged(); 815 return this; 816 } 817 /** 818 * 819 * 820 * <pre> 821 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 822 * the format of a single instance, which are used in 823 * [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], 824 * [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] 825 * and 826 * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. 827 * The schema is defined as an OpenAPI 3.0.2 [Schema 828 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 829 * AutoML Models always have this field populated by Vertex AI. 830 * Note: The URI given on output will be immutable and probably different, 831 * including the URI scheme, than the one given on input. The output URI will 832 * point to a location where the user only has a read access. 833 * </pre> 834 * 835 * <code>string instance_schema_uri = 1 [(.google.api.field_behavior) = IMMUTABLE];</code> 836 * 837 * @param value The bytes for instanceSchemaUri to set. 838 * @return This builder for chaining. 839 */ setInstanceSchemaUriBytes(com.google.protobuf.ByteString value)840 public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { 841 if (value == null) { 842 throw new NullPointerException(); 843 } 844 checkByteStringIsUtf8(value); 845 instanceSchemaUri_ = value; 846 bitField0_ |= 0x00000001; 847 onChanged(); 848 return this; 849 } 850 851 private java.lang.Object parametersSchemaUri_ = ""; 852 /** 853 * 854 * 855 * <pre> 856 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 857 * the parameters of prediction and explanation via 858 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 859 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 860 * and 861 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 862 * The schema is defined as an OpenAPI 3.0.2 [Schema 863 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 864 * AutoML Models always have this field populated by Vertex AI, if no 865 * parameters are supported, then it is set to an empty string. 866 * Note: The URI given on output will be immutable and probably different, 867 * including the URI scheme, than the one given on input. The output URI will 868 * point to a location where the user only has a read access. 869 * </pre> 870 * 871 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 872 * 873 * @return The parametersSchemaUri. 874 */ getParametersSchemaUri()875 public java.lang.String getParametersSchemaUri() { 876 java.lang.Object ref = parametersSchemaUri_; 877 if (!(ref instanceof java.lang.String)) { 878 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 879 java.lang.String s = bs.toStringUtf8(); 880 parametersSchemaUri_ = s; 881 return s; 882 } else { 883 return (java.lang.String) ref; 884 } 885 } 886 /** 887 * 888 * 889 * <pre> 890 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 891 * the parameters of prediction and explanation via 892 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 893 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 894 * and 895 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 896 * The schema is defined as an OpenAPI 3.0.2 [Schema 897 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 898 * AutoML Models always have this field populated by Vertex AI, if no 899 * parameters are supported, then it is set to an empty string. 900 * Note: The URI given on output will be immutable and probably different, 901 * including the URI scheme, than the one given on input. The output URI will 902 * point to a location where the user only has a read access. 903 * </pre> 904 * 905 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 906 * 907 * @return The bytes for parametersSchemaUri. 908 */ getParametersSchemaUriBytes()909 public com.google.protobuf.ByteString getParametersSchemaUriBytes() { 910 java.lang.Object ref = parametersSchemaUri_; 911 if (ref instanceof String) { 912 com.google.protobuf.ByteString b = 913 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 914 parametersSchemaUri_ = b; 915 return b; 916 } else { 917 return (com.google.protobuf.ByteString) ref; 918 } 919 } 920 /** 921 * 922 * 923 * <pre> 924 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 925 * the parameters of prediction and explanation via 926 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 927 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 928 * and 929 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 930 * The schema is defined as an OpenAPI 3.0.2 [Schema 931 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 932 * AutoML Models always have this field populated by Vertex AI, if no 933 * parameters are supported, then it is set to an empty string. 934 * Note: The URI given on output will be immutable and probably different, 935 * including the URI scheme, than the one given on input. The output URI will 936 * point to a location where the user only has a read access. 937 * </pre> 938 * 939 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 940 * 941 * @param value The parametersSchemaUri to set. 942 * @return This builder for chaining. 943 */ setParametersSchemaUri(java.lang.String value)944 public Builder setParametersSchemaUri(java.lang.String value) { 945 if (value == null) { 946 throw new NullPointerException(); 947 } 948 parametersSchemaUri_ = value; 949 bitField0_ |= 0x00000002; 950 onChanged(); 951 return this; 952 } 953 /** 954 * 955 * 956 * <pre> 957 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 958 * the parameters of prediction and explanation via 959 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 960 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 961 * and 962 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 963 * The schema is defined as an OpenAPI 3.0.2 [Schema 964 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 965 * AutoML Models always have this field populated by Vertex AI, if no 966 * parameters are supported, then it is set to an empty string. 967 * Note: The URI given on output will be immutable and probably different, 968 * including the URI scheme, than the one given on input. The output URI will 969 * point to a location where the user only has a read access. 970 * </pre> 971 * 972 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 973 * 974 * @return This builder for chaining. 975 */ clearParametersSchemaUri()976 public Builder clearParametersSchemaUri() { 977 parametersSchemaUri_ = getDefaultInstance().getParametersSchemaUri(); 978 bitField0_ = (bitField0_ & ~0x00000002); 979 onChanged(); 980 return this; 981 } 982 /** 983 * 984 * 985 * <pre> 986 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 987 * the parameters of prediction and explanation via 988 * [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], 989 * [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] 990 * and 991 * [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. 992 * The schema is defined as an OpenAPI 3.0.2 [Schema 993 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 994 * AutoML Models always have this field populated by Vertex AI, if no 995 * parameters are supported, then it is set to an empty string. 996 * Note: The URI given on output will be immutable and probably different, 997 * including the URI scheme, than the one given on input. The output URI will 998 * point to a location where the user only has a read access. 999 * </pre> 1000 * 1001 * <code>string parameters_schema_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1002 * 1003 * @param value The bytes for parametersSchemaUri to set. 1004 * @return This builder for chaining. 1005 */ setParametersSchemaUriBytes(com.google.protobuf.ByteString value)1006 public Builder setParametersSchemaUriBytes(com.google.protobuf.ByteString value) { 1007 if (value == null) { 1008 throw new NullPointerException(); 1009 } 1010 checkByteStringIsUtf8(value); 1011 parametersSchemaUri_ = value; 1012 bitField0_ |= 0x00000002; 1013 onChanged(); 1014 return this; 1015 } 1016 1017 private java.lang.Object predictionSchemaUri_ = ""; 1018 /** 1019 * 1020 * 1021 * <pre> 1022 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 1023 * the format of a single prediction produced by this Model, which are 1024 * returned via 1025 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 1026 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 1027 * and 1028 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 1029 * The schema is defined as an OpenAPI 3.0.2 [Schema 1030 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1031 * AutoML Models always have this field populated by Vertex AI. 1032 * Note: The URI given on output will be immutable and probably different, 1033 * including the URI scheme, than the one given on input. The output URI will 1034 * point to a location where the user only has a read access. 1035 * </pre> 1036 * 1037 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 1038 * 1039 * @return The predictionSchemaUri. 1040 */ getPredictionSchemaUri()1041 public java.lang.String getPredictionSchemaUri() { 1042 java.lang.Object ref = predictionSchemaUri_; 1043 if (!(ref instanceof java.lang.String)) { 1044 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1045 java.lang.String s = bs.toStringUtf8(); 1046 predictionSchemaUri_ = s; 1047 return s; 1048 } else { 1049 return (java.lang.String) ref; 1050 } 1051 } 1052 /** 1053 * 1054 * 1055 * <pre> 1056 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 1057 * the format of a single prediction produced by this Model, which are 1058 * returned via 1059 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 1060 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 1061 * and 1062 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 1063 * The schema is defined as an OpenAPI 3.0.2 [Schema 1064 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1065 * AutoML Models always have this field populated by Vertex AI. 1066 * Note: The URI given on output will be immutable and probably different, 1067 * including the URI scheme, than the one given on input. The output URI will 1068 * point to a location where the user only has a read access. 1069 * </pre> 1070 * 1071 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 1072 * 1073 * @return The bytes for predictionSchemaUri. 1074 */ getPredictionSchemaUriBytes()1075 public com.google.protobuf.ByteString getPredictionSchemaUriBytes() { 1076 java.lang.Object ref = predictionSchemaUri_; 1077 if (ref instanceof String) { 1078 com.google.protobuf.ByteString b = 1079 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1080 predictionSchemaUri_ = b; 1081 return b; 1082 } else { 1083 return (com.google.protobuf.ByteString) ref; 1084 } 1085 } 1086 /** 1087 * 1088 * 1089 * <pre> 1090 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 1091 * the format of a single prediction produced by this Model, which are 1092 * returned via 1093 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 1094 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 1095 * and 1096 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 1097 * The schema is defined as an OpenAPI 3.0.2 [Schema 1098 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1099 * AutoML Models always have this field populated by Vertex AI. 1100 * Note: The URI given on output will be immutable and probably different, 1101 * including the URI scheme, than the one given on input. The output URI will 1102 * point to a location where the user only has a read access. 1103 * </pre> 1104 * 1105 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 1106 * 1107 * @param value The predictionSchemaUri to set. 1108 * @return This builder for chaining. 1109 */ setPredictionSchemaUri(java.lang.String value)1110 public Builder setPredictionSchemaUri(java.lang.String value) { 1111 if (value == null) { 1112 throw new NullPointerException(); 1113 } 1114 predictionSchemaUri_ = value; 1115 bitField0_ |= 0x00000004; 1116 onChanged(); 1117 return this; 1118 } 1119 /** 1120 * 1121 * 1122 * <pre> 1123 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 1124 * the format of a single prediction produced by this Model, which are 1125 * returned via 1126 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 1127 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 1128 * and 1129 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 1130 * The schema is defined as an OpenAPI 3.0.2 [Schema 1131 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1132 * AutoML Models always have this field populated by Vertex AI. 1133 * Note: The URI given on output will be immutable and probably different, 1134 * including the URI scheme, than the one given on input. The output URI will 1135 * point to a location where the user only has a read access. 1136 * </pre> 1137 * 1138 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 1139 * 1140 * @return This builder for chaining. 1141 */ clearPredictionSchemaUri()1142 public Builder clearPredictionSchemaUri() { 1143 predictionSchemaUri_ = getDefaultInstance().getPredictionSchemaUri(); 1144 bitField0_ = (bitField0_ & ~0x00000004); 1145 onChanged(); 1146 return this; 1147 } 1148 /** 1149 * 1150 * 1151 * <pre> 1152 * Immutable. Points to a YAML file stored on Google Cloud Storage describing 1153 * the format of a single prediction produced by this Model, which are 1154 * returned via 1155 * [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], 1156 * [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], 1157 * and 1158 * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. 1159 * The schema is defined as an OpenAPI 3.0.2 [Schema 1160 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1161 * AutoML Models always have this field populated by Vertex AI. 1162 * Note: The URI given on output will be immutable and probably different, 1163 * including the URI scheme, than the one given on input. The output URI will 1164 * point to a location where the user only has a read access. 1165 * </pre> 1166 * 1167 * <code>string prediction_schema_uri = 3 [(.google.api.field_behavior) = IMMUTABLE];</code> 1168 * 1169 * @param value The bytes for predictionSchemaUri to set. 1170 * @return This builder for chaining. 1171 */ setPredictionSchemaUriBytes(com.google.protobuf.ByteString value)1172 public Builder setPredictionSchemaUriBytes(com.google.protobuf.ByteString value) { 1173 if (value == null) { 1174 throw new NullPointerException(); 1175 } 1176 checkByteStringIsUtf8(value); 1177 predictionSchemaUri_ = value; 1178 bitField0_ |= 0x00000004; 1179 onChanged(); 1180 return this; 1181 } 1182 1183 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1184 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1185 return super.setUnknownFields(unknownFields); 1186 } 1187 1188 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1189 public final Builder mergeUnknownFields( 1190 final com.google.protobuf.UnknownFieldSet unknownFields) { 1191 return super.mergeUnknownFields(unknownFields); 1192 } 1193 1194 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PredictSchemata) 1195 } 1196 1197 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PredictSchemata) 1198 private static final com.google.cloud.aiplatform.v1.PredictSchemata DEFAULT_INSTANCE; 1199 1200 static { 1201 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PredictSchemata(); 1202 } 1203 getDefaultInstance()1204 public static com.google.cloud.aiplatform.v1.PredictSchemata getDefaultInstance() { 1205 return DEFAULT_INSTANCE; 1206 } 1207 1208 private static final com.google.protobuf.Parser<PredictSchemata> PARSER = 1209 new com.google.protobuf.AbstractParser<PredictSchemata>() { 1210 @java.lang.Override 1211 public PredictSchemata parsePartialFrom( 1212 com.google.protobuf.CodedInputStream input, 1213 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1214 throws com.google.protobuf.InvalidProtocolBufferException { 1215 Builder builder = newBuilder(); 1216 try { 1217 builder.mergeFrom(input, extensionRegistry); 1218 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1219 throw e.setUnfinishedMessage(builder.buildPartial()); 1220 } catch (com.google.protobuf.UninitializedMessageException e) { 1221 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1222 } catch (java.io.IOException e) { 1223 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1224 .setUnfinishedMessage(builder.buildPartial()); 1225 } 1226 return builder.buildPartial(); 1227 } 1228 }; 1229 parser()1230 public static com.google.protobuf.Parser<PredictSchemata> parser() { 1231 return PARSER; 1232 } 1233 1234 @java.lang.Override getParserForType()1235 public com.google.protobuf.Parser<PredictSchemata> getParserForType() { 1236 return PARSER; 1237 } 1238 1239 @java.lang.Override getDefaultInstanceForType()1240 public com.google.cloud.aiplatform.v1.PredictSchemata getDefaultInstanceForType() { 1241 return DEFAULT_INSTANCE; 1242 } 1243 } 1244