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/training_pipeline.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Assigns input data to training, validation, and test sets based on the 26 * value of a provided key. 27 * Supported only for tabular Datasets. 28 * </pre> 29 * 30 * Protobuf type {@code google.cloud.aiplatform.v1.PredefinedSplit} 31 */ 32 public final class PredefinedSplit extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PredefinedSplit) 35 PredefinedSplitOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use PredefinedSplit.newBuilder() to construct. PredefinedSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private PredefinedSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 PredefinedSplit()42 private PredefinedSplit() { 43 key_ = ""; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new PredefinedSplit(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 59 .internal_static_google_cloud_aiplatform_v1_PredefinedSplit_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 66 .internal_static_google_cloud_aiplatform_v1_PredefinedSplit_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.aiplatform.v1.PredefinedSplit.class, 69 com.google.cloud.aiplatform.v1.PredefinedSplit.Builder.class); 70 } 71 72 public static final int KEY_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private volatile java.lang.Object key_ = ""; 76 /** 77 * 78 * 79 * <pre> 80 * Required. The key is a name of one of the Dataset's data columns. 81 * The value of the key (either the label's value or value in the column) 82 * must be one of {`training`, `validation`, `test`}, and it defines to which 83 * set the given piece of data is assigned. If for a piece of data the key 84 * is not present or has an invalid value, that piece is ignored by the 85 * pipeline. 86 * </pre> 87 * 88 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 89 * 90 * @return The key. 91 */ 92 @java.lang.Override getKey()93 public java.lang.String getKey() { 94 java.lang.Object ref = key_; 95 if (ref instanceof java.lang.String) { 96 return (java.lang.String) ref; 97 } else { 98 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 99 java.lang.String s = bs.toStringUtf8(); 100 key_ = s; 101 return s; 102 } 103 } 104 /** 105 * 106 * 107 * <pre> 108 * Required. The key is a name of one of the Dataset's data columns. 109 * The value of the key (either the label's value or value in the column) 110 * must be one of {`training`, `validation`, `test`}, and it defines to which 111 * set the given piece of data is assigned. If for a piece of data the key 112 * is not present or has an invalid value, that piece is ignored by the 113 * pipeline. 114 * </pre> 115 * 116 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 117 * 118 * @return The bytes for key. 119 */ 120 @java.lang.Override getKeyBytes()121 public com.google.protobuf.ByteString getKeyBytes() { 122 java.lang.Object ref = key_; 123 if (ref instanceof java.lang.String) { 124 com.google.protobuf.ByteString b = 125 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 126 key_ = b; 127 return b; 128 } else { 129 return (com.google.protobuf.ByteString) ref; 130 } 131 } 132 133 private byte memoizedIsInitialized = -1; 134 135 @java.lang.Override isInitialized()136 public final boolean isInitialized() { 137 byte isInitialized = memoizedIsInitialized; 138 if (isInitialized == 1) return true; 139 if (isInitialized == 0) return false; 140 141 memoizedIsInitialized = 1; 142 return true; 143 } 144 145 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)146 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 147 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { 148 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); 149 } 150 getUnknownFields().writeTo(output); 151 } 152 153 @java.lang.Override getSerializedSize()154 public int getSerializedSize() { 155 int size = memoizedSize; 156 if (size != -1) return size; 157 158 size = 0; 159 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { 160 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); 161 } 162 size += getUnknownFields().getSerializedSize(); 163 memoizedSize = size; 164 return size; 165 } 166 167 @java.lang.Override equals(final java.lang.Object obj)168 public boolean equals(final java.lang.Object obj) { 169 if (obj == this) { 170 return true; 171 } 172 if (!(obj instanceof com.google.cloud.aiplatform.v1.PredefinedSplit)) { 173 return super.equals(obj); 174 } 175 com.google.cloud.aiplatform.v1.PredefinedSplit other = 176 (com.google.cloud.aiplatform.v1.PredefinedSplit) obj; 177 178 if (!getKey().equals(other.getKey())) return false; 179 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 180 return true; 181 } 182 183 @java.lang.Override hashCode()184 public int hashCode() { 185 if (memoizedHashCode != 0) { 186 return memoizedHashCode; 187 } 188 int hash = 41; 189 hash = (19 * hash) + getDescriptor().hashCode(); 190 hash = (37 * hash) + KEY_FIELD_NUMBER; 191 hash = (53 * hash) + getKey().hashCode(); 192 hash = (29 * hash) + getUnknownFields().hashCode(); 193 memoizedHashCode = hash; 194 return hash; 195 } 196 parseFrom(java.nio.ByteBuffer data)197 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom(java.nio.ByteBuffer data) 198 throws com.google.protobuf.InvalidProtocolBufferException { 199 return PARSER.parseFrom(data); 200 } 201 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)202 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 203 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 204 throws com.google.protobuf.InvalidProtocolBufferException { 205 return PARSER.parseFrom(data, extensionRegistry); 206 } 207 parseFrom( com.google.protobuf.ByteString data)208 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 209 com.google.protobuf.ByteString data) 210 throws com.google.protobuf.InvalidProtocolBufferException { 211 return PARSER.parseFrom(data); 212 } 213 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)214 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 215 com.google.protobuf.ByteString data, 216 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 217 throws com.google.protobuf.InvalidProtocolBufferException { 218 return PARSER.parseFrom(data, extensionRegistry); 219 } 220 parseFrom(byte[] data)221 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom(byte[] data) 222 throws com.google.protobuf.InvalidProtocolBufferException { 223 return PARSER.parseFrom(data); 224 } 225 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)226 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 227 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 228 throws com.google.protobuf.InvalidProtocolBufferException { 229 return PARSER.parseFrom(data, extensionRegistry); 230 } 231 parseFrom(java.io.InputStream input)232 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom(java.io.InputStream input) 233 throws java.io.IOException { 234 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 235 } 236 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)237 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 238 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 239 throws java.io.IOException { 240 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 241 PARSER, input, extensionRegistry); 242 } 243 parseDelimitedFrom( java.io.InputStream input)244 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseDelimitedFrom( 245 java.io.InputStream input) throws java.io.IOException { 246 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 247 } 248 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)249 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseDelimitedFrom( 250 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 251 throws java.io.IOException { 252 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 253 PARSER, input, extensionRegistry); 254 } 255 parseFrom( com.google.protobuf.CodedInputStream input)256 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 257 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 258 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 259 } 260 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)261 public static com.google.cloud.aiplatform.v1.PredefinedSplit parseFrom( 262 com.google.protobuf.CodedInputStream input, 263 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 264 throws java.io.IOException { 265 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 266 PARSER, input, extensionRegistry); 267 } 268 269 @java.lang.Override newBuilderForType()270 public Builder newBuilderForType() { 271 return newBuilder(); 272 } 273 newBuilder()274 public static Builder newBuilder() { 275 return DEFAULT_INSTANCE.toBuilder(); 276 } 277 newBuilder(com.google.cloud.aiplatform.v1.PredefinedSplit prototype)278 public static Builder newBuilder(com.google.cloud.aiplatform.v1.PredefinedSplit prototype) { 279 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 280 } 281 282 @java.lang.Override toBuilder()283 public Builder toBuilder() { 284 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 285 } 286 287 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)288 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 289 Builder builder = new Builder(parent); 290 return builder; 291 } 292 /** 293 * 294 * 295 * <pre> 296 * Assigns input data to training, validation, and test sets based on the 297 * value of a provided key. 298 * Supported only for tabular Datasets. 299 * </pre> 300 * 301 * Protobuf type {@code google.cloud.aiplatform.v1.PredefinedSplit} 302 */ 303 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 304 implements 305 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PredefinedSplit) 306 com.google.cloud.aiplatform.v1.PredefinedSplitOrBuilder { getDescriptor()307 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 308 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 309 .internal_static_google_cloud_aiplatform_v1_PredefinedSplit_descriptor; 310 } 311 312 @java.lang.Override 313 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()314 internalGetFieldAccessorTable() { 315 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 316 .internal_static_google_cloud_aiplatform_v1_PredefinedSplit_fieldAccessorTable 317 .ensureFieldAccessorsInitialized( 318 com.google.cloud.aiplatform.v1.PredefinedSplit.class, 319 com.google.cloud.aiplatform.v1.PredefinedSplit.Builder.class); 320 } 321 322 // Construct using com.google.cloud.aiplatform.v1.PredefinedSplit.newBuilder() Builder()323 private Builder() {} 324 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)325 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 326 super(parent); 327 } 328 329 @java.lang.Override clear()330 public Builder clear() { 331 super.clear(); 332 bitField0_ = 0; 333 key_ = ""; 334 return this; 335 } 336 337 @java.lang.Override getDescriptorForType()338 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 339 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 340 .internal_static_google_cloud_aiplatform_v1_PredefinedSplit_descriptor; 341 } 342 343 @java.lang.Override getDefaultInstanceForType()344 public com.google.cloud.aiplatform.v1.PredefinedSplit getDefaultInstanceForType() { 345 return com.google.cloud.aiplatform.v1.PredefinedSplit.getDefaultInstance(); 346 } 347 348 @java.lang.Override build()349 public com.google.cloud.aiplatform.v1.PredefinedSplit build() { 350 com.google.cloud.aiplatform.v1.PredefinedSplit result = buildPartial(); 351 if (!result.isInitialized()) { 352 throw newUninitializedMessageException(result); 353 } 354 return result; 355 } 356 357 @java.lang.Override buildPartial()358 public com.google.cloud.aiplatform.v1.PredefinedSplit buildPartial() { 359 com.google.cloud.aiplatform.v1.PredefinedSplit result = 360 new com.google.cloud.aiplatform.v1.PredefinedSplit(this); 361 if (bitField0_ != 0) { 362 buildPartial0(result); 363 } 364 onBuilt(); 365 return result; 366 } 367 buildPartial0(com.google.cloud.aiplatform.v1.PredefinedSplit result)368 private void buildPartial0(com.google.cloud.aiplatform.v1.PredefinedSplit result) { 369 int from_bitField0_ = bitField0_; 370 if (((from_bitField0_ & 0x00000001) != 0)) { 371 result.key_ = key_; 372 } 373 } 374 375 @java.lang.Override clone()376 public Builder clone() { 377 return super.clone(); 378 } 379 380 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)381 public Builder setField( 382 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 383 return super.setField(field, value); 384 } 385 386 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)387 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 388 return super.clearField(field); 389 } 390 391 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)392 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 393 return super.clearOneof(oneof); 394 } 395 396 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)397 public Builder setRepeatedField( 398 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 399 return super.setRepeatedField(field, index, value); 400 } 401 402 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)403 public Builder addRepeatedField( 404 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 405 return super.addRepeatedField(field, value); 406 } 407 408 @java.lang.Override mergeFrom(com.google.protobuf.Message other)409 public Builder mergeFrom(com.google.protobuf.Message other) { 410 if (other instanceof com.google.cloud.aiplatform.v1.PredefinedSplit) { 411 return mergeFrom((com.google.cloud.aiplatform.v1.PredefinedSplit) other); 412 } else { 413 super.mergeFrom(other); 414 return this; 415 } 416 } 417 mergeFrom(com.google.cloud.aiplatform.v1.PredefinedSplit other)418 public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredefinedSplit other) { 419 if (other == com.google.cloud.aiplatform.v1.PredefinedSplit.getDefaultInstance()) return this; 420 if (!other.getKey().isEmpty()) { 421 key_ = other.key_; 422 bitField0_ |= 0x00000001; 423 onChanged(); 424 } 425 this.mergeUnknownFields(other.getUnknownFields()); 426 onChanged(); 427 return this; 428 } 429 430 @java.lang.Override isInitialized()431 public final boolean isInitialized() { 432 return true; 433 } 434 435 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)436 public Builder mergeFrom( 437 com.google.protobuf.CodedInputStream input, 438 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 439 throws java.io.IOException { 440 if (extensionRegistry == null) { 441 throw new java.lang.NullPointerException(); 442 } 443 try { 444 boolean done = false; 445 while (!done) { 446 int tag = input.readTag(); 447 switch (tag) { 448 case 0: 449 done = true; 450 break; 451 case 10: 452 { 453 key_ = input.readStringRequireUtf8(); 454 bitField0_ |= 0x00000001; 455 break; 456 } // case 10 457 default: 458 { 459 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 460 done = true; // was an endgroup tag 461 } 462 break; 463 } // default: 464 } // switch (tag) 465 } // while (!done) 466 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 467 throw e.unwrapIOException(); 468 } finally { 469 onChanged(); 470 } // finally 471 return this; 472 } 473 474 private int bitField0_; 475 476 private java.lang.Object key_ = ""; 477 /** 478 * 479 * 480 * <pre> 481 * Required. The key is a name of one of the Dataset's data columns. 482 * The value of the key (either the label's value or value in the column) 483 * must be one of {`training`, `validation`, `test`}, and it defines to which 484 * set the given piece of data is assigned. If for a piece of data the key 485 * is not present or has an invalid value, that piece is ignored by the 486 * pipeline. 487 * </pre> 488 * 489 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 490 * 491 * @return The key. 492 */ getKey()493 public java.lang.String getKey() { 494 java.lang.Object ref = key_; 495 if (!(ref instanceof java.lang.String)) { 496 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 497 java.lang.String s = bs.toStringUtf8(); 498 key_ = s; 499 return s; 500 } else { 501 return (java.lang.String) ref; 502 } 503 } 504 /** 505 * 506 * 507 * <pre> 508 * Required. The key is a name of one of the Dataset's data columns. 509 * The value of the key (either the label's value or value in the column) 510 * must be one of {`training`, `validation`, `test`}, and it defines to which 511 * set the given piece of data is assigned. If for a piece of data the key 512 * is not present or has an invalid value, that piece is ignored by the 513 * pipeline. 514 * </pre> 515 * 516 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 517 * 518 * @return The bytes for key. 519 */ getKeyBytes()520 public com.google.protobuf.ByteString getKeyBytes() { 521 java.lang.Object ref = key_; 522 if (ref instanceof String) { 523 com.google.protobuf.ByteString b = 524 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 525 key_ = b; 526 return b; 527 } else { 528 return (com.google.protobuf.ByteString) ref; 529 } 530 } 531 /** 532 * 533 * 534 * <pre> 535 * Required. The key is a name of one of the Dataset's data columns. 536 * The value of the key (either the label's value or value in the column) 537 * must be one of {`training`, `validation`, `test`}, and it defines to which 538 * set the given piece of data is assigned. If for a piece of data the key 539 * is not present or has an invalid value, that piece is ignored by the 540 * pipeline. 541 * </pre> 542 * 543 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 544 * 545 * @param value The key to set. 546 * @return This builder for chaining. 547 */ setKey(java.lang.String value)548 public Builder setKey(java.lang.String value) { 549 if (value == null) { 550 throw new NullPointerException(); 551 } 552 key_ = value; 553 bitField0_ |= 0x00000001; 554 onChanged(); 555 return this; 556 } 557 /** 558 * 559 * 560 * <pre> 561 * Required. The key is a name of one of the Dataset's data columns. 562 * The value of the key (either the label's value or value in the column) 563 * must be one of {`training`, `validation`, `test`}, and it defines to which 564 * set the given piece of data is assigned. If for a piece of data the key 565 * is not present or has an invalid value, that piece is ignored by the 566 * pipeline. 567 * </pre> 568 * 569 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 570 * 571 * @return This builder for chaining. 572 */ clearKey()573 public Builder clearKey() { 574 key_ = getDefaultInstance().getKey(); 575 bitField0_ = (bitField0_ & ~0x00000001); 576 onChanged(); 577 return this; 578 } 579 /** 580 * 581 * 582 * <pre> 583 * Required. The key is a name of one of the Dataset's data columns. 584 * The value of the key (either the label's value or value in the column) 585 * must be one of {`training`, `validation`, `test`}, and it defines to which 586 * set the given piece of data is assigned. If for a piece of data the key 587 * is not present or has an invalid value, that piece is ignored by the 588 * pipeline. 589 * </pre> 590 * 591 * <code>string key = 1 [(.google.api.field_behavior) = REQUIRED];</code> 592 * 593 * @param value The bytes for key to set. 594 * @return This builder for chaining. 595 */ setKeyBytes(com.google.protobuf.ByteString value)596 public Builder setKeyBytes(com.google.protobuf.ByteString value) { 597 if (value == null) { 598 throw new NullPointerException(); 599 } 600 checkByteStringIsUtf8(value); 601 key_ = value; 602 bitField0_ |= 0x00000001; 603 onChanged(); 604 return this; 605 } 606 607 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)608 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 609 return super.setUnknownFields(unknownFields); 610 } 611 612 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)613 public final Builder mergeUnknownFields( 614 final com.google.protobuf.UnknownFieldSet unknownFields) { 615 return super.mergeUnknownFields(unknownFields); 616 } 617 618 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PredefinedSplit) 619 } 620 621 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PredefinedSplit) 622 private static final com.google.cloud.aiplatform.v1.PredefinedSplit DEFAULT_INSTANCE; 623 624 static { 625 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PredefinedSplit(); 626 } 627 getDefaultInstance()628 public static com.google.cloud.aiplatform.v1.PredefinedSplit getDefaultInstance() { 629 return DEFAULT_INSTANCE; 630 } 631 632 private static final com.google.protobuf.Parser<PredefinedSplit> PARSER = 633 new com.google.protobuf.AbstractParser<PredefinedSplit>() { 634 @java.lang.Override 635 public PredefinedSplit parsePartialFrom( 636 com.google.protobuf.CodedInputStream input, 637 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 638 throws com.google.protobuf.InvalidProtocolBufferException { 639 Builder builder = newBuilder(); 640 try { 641 builder.mergeFrom(input, extensionRegistry); 642 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 643 throw e.setUnfinishedMessage(builder.buildPartial()); 644 } catch (com.google.protobuf.UninitializedMessageException e) { 645 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 646 } catch (java.io.IOException e) { 647 throw new com.google.protobuf.InvalidProtocolBufferException(e) 648 .setUnfinishedMessage(builder.buildPartial()); 649 } 650 return builder.buildPartial(); 651 } 652 }; 653 parser()654 public static com.google.protobuf.Parser<PredefinedSplit> parser() { 655 return PARSER; 656 } 657 658 @java.lang.Override getParserForType()659 public com.google.protobuf.Parser<PredefinedSplit> getParserForType() { 660 return PARSER; 661 } 662 663 @java.lang.Override getDefaultInstanceForType()664 public com.google.cloud.aiplatform.v1.PredefinedSplit getDefaultInstanceForType() { 665 return DEFAULT_INSTANCE; 666 } 667 } 668