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 a 26 * provided timestamps. The youngest data pieces are assigned to training set, 27 * next to validation set, and the oldest to the test set. 28 * Supported only for tabular Datasets. 29 * </pre> 30 * 31 * Protobuf type {@code google.cloud.aiplatform.v1.TimestampSplit} 32 */ 33 public final class TimestampSplit extends com.google.protobuf.GeneratedMessageV3 34 implements 35 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.TimestampSplit) 36 TimestampSplitOrBuilder { 37 private static final long serialVersionUID = 0L; 38 // Use TimestampSplit.newBuilder() to construct. TimestampSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39 private TimestampSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 TimestampSplit()43 private TimestampSplit() { 44 key_ = ""; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new TimestampSplit(); 51 } 52 53 @java.lang.Override getUnknownFields()54 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 55 return this.unknownFields; 56 } 57 getDescriptor()58 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 59 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 60 .internal_static_google_cloud_aiplatform_v1_TimestampSplit_descriptor; 61 } 62 63 @java.lang.Override 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()65 internalGetFieldAccessorTable() { 66 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 67 .internal_static_google_cloud_aiplatform_v1_TimestampSplit_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 com.google.cloud.aiplatform.v1.TimestampSplit.class, 70 com.google.cloud.aiplatform.v1.TimestampSplit.Builder.class); 71 } 72 73 public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; 74 private double trainingFraction_ = 0D; 75 /** 76 * 77 * 78 * <pre> 79 * The fraction of the input data that is to be used to train the Model. 80 * </pre> 81 * 82 * <code>double training_fraction = 1;</code> 83 * 84 * @return The trainingFraction. 85 */ 86 @java.lang.Override getTrainingFraction()87 public double getTrainingFraction() { 88 return trainingFraction_; 89 } 90 91 public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; 92 private double validationFraction_ = 0D; 93 /** 94 * 95 * 96 * <pre> 97 * The fraction of the input data that is to be used to validate the Model. 98 * </pre> 99 * 100 * <code>double validation_fraction = 2;</code> 101 * 102 * @return The validationFraction. 103 */ 104 @java.lang.Override getValidationFraction()105 public double getValidationFraction() { 106 return validationFraction_; 107 } 108 109 public static final int TEST_FRACTION_FIELD_NUMBER = 3; 110 private double testFraction_ = 0D; 111 /** 112 * 113 * 114 * <pre> 115 * The fraction of the input data that is to be used to evaluate the Model. 116 * </pre> 117 * 118 * <code>double test_fraction = 3;</code> 119 * 120 * @return The testFraction. 121 */ 122 @java.lang.Override getTestFraction()123 public double getTestFraction() { 124 return testFraction_; 125 } 126 127 public static final int KEY_FIELD_NUMBER = 4; 128 129 @SuppressWarnings("serial") 130 private volatile java.lang.Object key_ = ""; 131 /** 132 * 133 * 134 * <pre> 135 * Required. The key is a name of one of the Dataset's data columns. 136 * The values of the key (the values in the column) must be in RFC 3339 137 * `date-time` format, where `time-offset` = `"Z"` 138 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 139 * present or has an invalid value, that piece is ignored by the pipeline. 140 * </pre> 141 * 142 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 143 * 144 * @return The key. 145 */ 146 @java.lang.Override getKey()147 public java.lang.String getKey() { 148 java.lang.Object ref = key_; 149 if (ref instanceof java.lang.String) { 150 return (java.lang.String) ref; 151 } else { 152 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 153 java.lang.String s = bs.toStringUtf8(); 154 key_ = s; 155 return s; 156 } 157 } 158 /** 159 * 160 * 161 * <pre> 162 * Required. The key is a name of one of the Dataset's data columns. 163 * The values of the key (the values in the column) must be in RFC 3339 164 * `date-time` format, where `time-offset` = `"Z"` 165 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 166 * present or has an invalid value, that piece is ignored by the pipeline. 167 * </pre> 168 * 169 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 170 * 171 * @return The bytes for key. 172 */ 173 @java.lang.Override getKeyBytes()174 public com.google.protobuf.ByteString getKeyBytes() { 175 java.lang.Object ref = key_; 176 if (ref instanceof java.lang.String) { 177 com.google.protobuf.ByteString b = 178 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 179 key_ = b; 180 return b; 181 } else { 182 return (com.google.protobuf.ByteString) ref; 183 } 184 } 185 186 private byte memoizedIsInitialized = -1; 187 188 @java.lang.Override isInitialized()189 public final boolean isInitialized() { 190 byte isInitialized = memoizedIsInitialized; 191 if (isInitialized == 1) return true; 192 if (isInitialized == 0) return false; 193 194 memoizedIsInitialized = 1; 195 return true; 196 } 197 198 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)199 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 200 if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { 201 output.writeDouble(1, trainingFraction_); 202 } 203 if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { 204 output.writeDouble(2, validationFraction_); 205 } 206 if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { 207 output.writeDouble(3, testFraction_); 208 } 209 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { 210 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_); 211 } 212 getUnknownFields().writeTo(output); 213 } 214 215 @java.lang.Override getSerializedSize()216 public int getSerializedSize() { 217 int size = memoizedSize; 218 if (size != -1) return size; 219 220 size = 0; 221 if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) { 222 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_); 223 } 224 if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) { 225 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_); 226 } 227 if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) { 228 size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_); 229 } 230 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { 231 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_); 232 } 233 size += getUnknownFields().getSerializedSize(); 234 memoizedSize = size; 235 return size; 236 } 237 238 @java.lang.Override equals(final java.lang.Object obj)239 public boolean equals(final java.lang.Object obj) { 240 if (obj == this) { 241 return true; 242 } 243 if (!(obj instanceof com.google.cloud.aiplatform.v1.TimestampSplit)) { 244 return super.equals(obj); 245 } 246 com.google.cloud.aiplatform.v1.TimestampSplit other = 247 (com.google.cloud.aiplatform.v1.TimestampSplit) obj; 248 249 if (java.lang.Double.doubleToLongBits(getTrainingFraction()) 250 != java.lang.Double.doubleToLongBits(other.getTrainingFraction())) return false; 251 if (java.lang.Double.doubleToLongBits(getValidationFraction()) 252 != java.lang.Double.doubleToLongBits(other.getValidationFraction())) return false; 253 if (java.lang.Double.doubleToLongBits(getTestFraction()) 254 != java.lang.Double.doubleToLongBits(other.getTestFraction())) return false; 255 if (!getKey().equals(other.getKey())) return false; 256 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 257 return true; 258 } 259 260 @java.lang.Override hashCode()261 public int hashCode() { 262 if (memoizedHashCode != 0) { 263 return memoizedHashCode; 264 } 265 int hash = 41; 266 hash = (19 * hash) + getDescriptor().hashCode(); 267 hash = (37 * hash) + TRAINING_FRACTION_FIELD_NUMBER; 268 hash = 269 (53 * hash) 270 + com.google.protobuf.Internal.hashLong( 271 java.lang.Double.doubleToLongBits(getTrainingFraction())); 272 hash = (37 * hash) + VALIDATION_FRACTION_FIELD_NUMBER; 273 hash = 274 (53 * hash) 275 + com.google.protobuf.Internal.hashLong( 276 java.lang.Double.doubleToLongBits(getValidationFraction())); 277 hash = (37 * hash) + TEST_FRACTION_FIELD_NUMBER; 278 hash = 279 (53 * hash) 280 + com.google.protobuf.Internal.hashLong( 281 java.lang.Double.doubleToLongBits(getTestFraction())); 282 hash = (37 * hash) + KEY_FIELD_NUMBER; 283 hash = (53 * hash) + getKey().hashCode(); 284 hash = (29 * hash) + getUnknownFields().hashCode(); 285 memoizedHashCode = hash; 286 return hash; 287 } 288 parseFrom(java.nio.ByteBuffer data)289 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom(java.nio.ByteBuffer data) 290 throws com.google.protobuf.InvalidProtocolBufferException { 291 return PARSER.parseFrom(data); 292 } 293 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)294 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 295 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 296 throws com.google.protobuf.InvalidProtocolBufferException { 297 return PARSER.parseFrom(data, extensionRegistry); 298 } 299 parseFrom( com.google.protobuf.ByteString data)300 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 301 com.google.protobuf.ByteString data) 302 throws com.google.protobuf.InvalidProtocolBufferException { 303 return PARSER.parseFrom(data); 304 } 305 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)306 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 307 com.google.protobuf.ByteString data, 308 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 309 throws com.google.protobuf.InvalidProtocolBufferException { 310 return PARSER.parseFrom(data, extensionRegistry); 311 } 312 parseFrom(byte[] data)313 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom(byte[] data) 314 throws com.google.protobuf.InvalidProtocolBufferException { 315 return PARSER.parseFrom(data); 316 } 317 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)318 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 319 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 320 throws com.google.protobuf.InvalidProtocolBufferException { 321 return PARSER.parseFrom(data, extensionRegistry); 322 } 323 parseFrom(java.io.InputStream input)324 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom(java.io.InputStream input) 325 throws java.io.IOException { 326 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 327 } 328 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)329 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 330 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 331 throws java.io.IOException { 332 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 333 PARSER, input, extensionRegistry); 334 } 335 parseDelimitedFrom( java.io.InputStream input)336 public static com.google.cloud.aiplatform.v1.TimestampSplit parseDelimitedFrom( 337 java.io.InputStream input) throws java.io.IOException { 338 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 339 } 340 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)341 public static com.google.cloud.aiplatform.v1.TimestampSplit parseDelimitedFrom( 342 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 343 throws java.io.IOException { 344 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 345 PARSER, input, extensionRegistry); 346 } 347 parseFrom( com.google.protobuf.CodedInputStream input)348 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 349 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 350 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 351 } 352 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)353 public static com.google.cloud.aiplatform.v1.TimestampSplit parseFrom( 354 com.google.protobuf.CodedInputStream input, 355 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 356 throws java.io.IOException { 357 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 358 PARSER, input, extensionRegistry); 359 } 360 361 @java.lang.Override newBuilderForType()362 public Builder newBuilderForType() { 363 return newBuilder(); 364 } 365 newBuilder()366 public static Builder newBuilder() { 367 return DEFAULT_INSTANCE.toBuilder(); 368 } 369 newBuilder(com.google.cloud.aiplatform.v1.TimestampSplit prototype)370 public static Builder newBuilder(com.google.cloud.aiplatform.v1.TimestampSplit prototype) { 371 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 372 } 373 374 @java.lang.Override toBuilder()375 public Builder toBuilder() { 376 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 377 } 378 379 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)380 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 381 Builder builder = new Builder(parent); 382 return builder; 383 } 384 /** 385 * 386 * 387 * <pre> 388 * Assigns input data to training, validation, and test sets based on a 389 * provided timestamps. The youngest data pieces are assigned to training set, 390 * next to validation set, and the oldest to the test set. 391 * Supported only for tabular Datasets. 392 * </pre> 393 * 394 * Protobuf type {@code google.cloud.aiplatform.v1.TimestampSplit} 395 */ 396 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 397 implements 398 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.TimestampSplit) 399 com.google.cloud.aiplatform.v1.TimestampSplitOrBuilder { getDescriptor()400 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 401 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 402 .internal_static_google_cloud_aiplatform_v1_TimestampSplit_descriptor; 403 } 404 405 @java.lang.Override 406 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()407 internalGetFieldAccessorTable() { 408 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 409 .internal_static_google_cloud_aiplatform_v1_TimestampSplit_fieldAccessorTable 410 .ensureFieldAccessorsInitialized( 411 com.google.cloud.aiplatform.v1.TimestampSplit.class, 412 com.google.cloud.aiplatform.v1.TimestampSplit.Builder.class); 413 } 414 415 // Construct using com.google.cloud.aiplatform.v1.TimestampSplit.newBuilder() Builder()416 private Builder() {} 417 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)418 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 419 super(parent); 420 } 421 422 @java.lang.Override clear()423 public Builder clear() { 424 super.clear(); 425 bitField0_ = 0; 426 trainingFraction_ = 0D; 427 validationFraction_ = 0D; 428 testFraction_ = 0D; 429 key_ = ""; 430 return this; 431 } 432 433 @java.lang.Override getDescriptorForType()434 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 435 return com.google.cloud.aiplatform.v1.TrainingPipelineProto 436 .internal_static_google_cloud_aiplatform_v1_TimestampSplit_descriptor; 437 } 438 439 @java.lang.Override getDefaultInstanceForType()440 public com.google.cloud.aiplatform.v1.TimestampSplit getDefaultInstanceForType() { 441 return com.google.cloud.aiplatform.v1.TimestampSplit.getDefaultInstance(); 442 } 443 444 @java.lang.Override build()445 public com.google.cloud.aiplatform.v1.TimestampSplit build() { 446 com.google.cloud.aiplatform.v1.TimestampSplit result = buildPartial(); 447 if (!result.isInitialized()) { 448 throw newUninitializedMessageException(result); 449 } 450 return result; 451 } 452 453 @java.lang.Override buildPartial()454 public com.google.cloud.aiplatform.v1.TimestampSplit buildPartial() { 455 com.google.cloud.aiplatform.v1.TimestampSplit result = 456 new com.google.cloud.aiplatform.v1.TimestampSplit(this); 457 if (bitField0_ != 0) { 458 buildPartial0(result); 459 } 460 onBuilt(); 461 return result; 462 } 463 buildPartial0(com.google.cloud.aiplatform.v1.TimestampSplit result)464 private void buildPartial0(com.google.cloud.aiplatform.v1.TimestampSplit result) { 465 int from_bitField0_ = bitField0_; 466 if (((from_bitField0_ & 0x00000001) != 0)) { 467 result.trainingFraction_ = trainingFraction_; 468 } 469 if (((from_bitField0_ & 0x00000002) != 0)) { 470 result.validationFraction_ = validationFraction_; 471 } 472 if (((from_bitField0_ & 0x00000004) != 0)) { 473 result.testFraction_ = testFraction_; 474 } 475 if (((from_bitField0_ & 0x00000008) != 0)) { 476 result.key_ = key_; 477 } 478 } 479 480 @java.lang.Override clone()481 public Builder clone() { 482 return super.clone(); 483 } 484 485 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)486 public Builder setField( 487 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 488 return super.setField(field, value); 489 } 490 491 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)492 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 493 return super.clearField(field); 494 } 495 496 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)497 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 498 return super.clearOneof(oneof); 499 } 500 501 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)502 public Builder setRepeatedField( 503 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 504 return super.setRepeatedField(field, index, value); 505 } 506 507 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)508 public Builder addRepeatedField( 509 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 510 return super.addRepeatedField(field, value); 511 } 512 513 @java.lang.Override mergeFrom(com.google.protobuf.Message other)514 public Builder mergeFrom(com.google.protobuf.Message other) { 515 if (other instanceof com.google.cloud.aiplatform.v1.TimestampSplit) { 516 return mergeFrom((com.google.cloud.aiplatform.v1.TimestampSplit) other); 517 } else { 518 super.mergeFrom(other); 519 return this; 520 } 521 } 522 mergeFrom(com.google.cloud.aiplatform.v1.TimestampSplit other)523 public Builder mergeFrom(com.google.cloud.aiplatform.v1.TimestampSplit other) { 524 if (other == com.google.cloud.aiplatform.v1.TimestampSplit.getDefaultInstance()) return this; 525 if (other.getTrainingFraction() != 0D) { 526 setTrainingFraction(other.getTrainingFraction()); 527 } 528 if (other.getValidationFraction() != 0D) { 529 setValidationFraction(other.getValidationFraction()); 530 } 531 if (other.getTestFraction() != 0D) { 532 setTestFraction(other.getTestFraction()); 533 } 534 if (!other.getKey().isEmpty()) { 535 key_ = other.key_; 536 bitField0_ |= 0x00000008; 537 onChanged(); 538 } 539 this.mergeUnknownFields(other.getUnknownFields()); 540 onChanged(); 541 return this; 542 } 543 544 @java.lang.Override isInitialized()545 public final boolean isInitialized() { 546 return true; 547 } 548 549 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)550 public Builder mergeFrom( 551 com.google.protobuf.CodedInputStream input, 552 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 553 throws java.io.IOException { 554 if (extensionRegistry == null) { 555 throw new java.lang.NullPointerException(); 556 } 557 try { 558 boolean done = false; 559 while (!done) { 560 int tag = input.readTag(); 561 switch (tag) { 562 case 0: 563 done = true; 564 break; 565 case 9: 566 { 567 trainingFraction_ = input.readDouble(); 568 bitField0_ |= 0x00000001; 569 break; 570 } // case 9 571 case 17: 572 { 573 validationFraction_ = input.readDouble(); 574 bitField0_ |= 0x00000002; 575 break; 576 } // case 17 577 case 25: 578 { 579 testFraction_ = input.readDouble(); 580 bitField0_ |= 0x00000004; 581 break; 582 } // case 25 583 case 34: 584 { 585 key_ = input.readStringRequireUtf8(); 586 bitField0_ |= 0x00000008; 587 break; 588 } // case 34 589 default: 590 { 591 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 592 done = true; // was an endgroup tag 593 } 594 break; 595 } // default: 596 } // switch (tag) 597 } // while (!done) 598 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 599 throw e.unwrapIOException(); 600 } finally { 601 onChanged(); 602 } // finally 603 return this; 604 } 605 606 private int bitField0_; 607 608 private double trainingFraction_; 609 /** 610 * 611 * 612 * <pre> 613 * The fraction of the input data that is to be used to train the Model. 614 * </pre> 615 * 616 * <code>double training_fraction = 1;</code> 617 * 618 * @return The trainingFraction. 619 */ 620 @java.lang.Override getTrainingFraction()621 public double getTrainingFraction() { 622 return trainingFraction_; 623 } 624 /** 625 * 626 * 627 * <pre> 628 * The fraction of the input data that is to be used to train the Model. 629 * </pre> 630 * 631 * <code>double training_fraction = 1;</code> 632 * 633 * @param value The trainingFraction to set. 634 * @return This builder for chaining. 635 */ setTrainingFraction(double value)636 public Builder setTrainingFraction(double value) { 637 638 trainingFraction_ = value; 639 bitField0_ |= 0x00000001; 640 onChanged(); 641 return this; 642 } 643 /** 644 * 645 * 646 * <pre> 647 * The fraction of the input data that is to be used to train the Model. 648 * </pre> 649 * 650 * <code>double training_fraction = 1;</code> 651 * 652 * @return This builder for chaining. 653 */ clearTrainingFraction()654 public Builder clearTrainingFraction() { 655 bitField0_ = (bitField0_ & ~0x00000001); 656 trainingFraction_ = 0D; 657 onChanged(); 658 return this; 659 } 660 661 private double validationFraction_; 662 /** 663 * 664 * 665 * <pre> 666 * The fraction of the input data that is to be used to validate the Model. 667 * </pre> 668 * 669 * <code>double validation_fraction = 2;</code> 670 * 671 * @return The validationFraction. 672 */ 673 @java.lang.Override getValidationFraction()674 public double getValidationFraction() { 675 return validationFraction_; 676 } 677 /** 678 * 679 * 680 * <pre> 681 * The fraction of the input data that is to be used to validate the Model. 682 * </pre> 683 * 684 * <code>double validation_fraction = 2;</code> 685 * 686 * @param value The validationFraction to set. 687 * @return This builder for chaining. 688 */ setValidationFraction(double value)689 public Builder setValidationFraction(double value) { 690 691 validationFraction_ = value; 692 bitField0_ |= 0x00000002; 693 onChanged(); 694 return this; 695 } 696 /** 697 * 698 * 699 * <pre> 700 * The fraction of the input data that is to be used to validate the Model. 701 * </pre> 702 * 703 * <code>double validation_fraction = 2;</code> 704 * 705 * @return This builder for chaining. 706 */ clearValidationFraction()707 public Builder clearValidationFraction() { 708 bitField0_ = (bitField0_ & ~0x00000002); 709 validationFraction_ = 0D; 710 onChanged(); 711 return this; 712 } 713 714 private double testFraction_; 715 /** 716 * 717 * 718 * <pre> 719 * The fraction of the input data that is to be used to evaluate the Model. 720 * </pre> 721 * 722 * <code>double test_fraction = 3;</code> 723 * 724 * @return The testFraction. 725 */ 726 @java.lang.Override getTestFraction()727 public double getTestFraction() { 728 return testFraction_; 729 } 730 /** 731 * 732 * 733 * <pre> 734 * The fraction of the input data that is to be used to evaluate the Model. 735 * </pre> 736 * 737 * <code>double test_fraction = 3;</code> 738 * 739 * @param value The testFraction to set. 740 * @return This builder for chaining. 741 */ setTestFraction(double value)742 public Builder setTestFraction(double value) { 743 744 testFraction_ = value; 745 bitField0_ |= 0x00000004; 746 onChanged(); 747 return this; 748 } 749 /** 750 * 751 * 752 * <pre> 753 * The fraction of the input data that is to be used to evaluate the Model. 754 * </pre> 755 * 756 * <code>double test_fraction = 3;</code> 757 * 758 * @return This builder for chaining. 759 */ clearTestFraction()760 public Builder clearTestFraction() { 761 bitField0_ = (bitField0_ & ~0x00000004); 762 testFraction_ = 0D; 763 onChanged(); 764 return this; 765 } 766 767 private java.lang.Object key_ = ""; 768 /** 769 * 770 * 771 * <pre> 772 * Required. The key is a name of one of the Dataset's data columns. 773 * The values of the key (the values in the column) must be in RFC 3339 774 * `date-time` format, where `time-offset` = `"Z"` 775 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 776 * present or has an invalid value, that piece is ignored by the pipeline. 777 * </pre> 778 * 779 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 780 * 781 * @return The key. 782 */ getKey()783 public java.lang.String getKey() { 784 java.lang.Object ref = key_; 785 if (!(ref instanceof java.lang.String)) { 786 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 787 java.lang.String s = bs.toStringUtf8(); 788 key_ = s; 789 return s; 790 } else { 791 return (java.lang.String) ref; 792 } 793 } 794 /** 795 * 796 * 797 * <pre> 798 * Required. The key is a name of one of the Dataset's data columns. 799 * The values of the key (the values in the column) must be in RFC 3339 800 * `date-time` format, where `time-offset` = `"Z"` 801 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 802 * present or has an invalid value, that piece is ignored by the pipeline. 803 * </pre> 804 * 805 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 806 * 807 * @return The bytes for key. 808 */ getKeyBytes()809 public com.google.protobuf.ByteString getKeyBytes() { 810 java.lang.Object ref = key_; 811 if (ref instanceof String) { 812 com.google.protobuf.ByteString b = 813 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 814 key_ = b; 815 return b; 816 } else { 817 return (com.google.protobuf.ByteString) ref; 818 } 819 } 820 /** 821 * 822 * 823 * <pre> 824 * Required. The key is a name of one of the Dataset's data columns. 825 * The values of the key (the values in the column) must be in RFC 3339 826 * `date-time` format, where `time-offset` = `"Z"` 827 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 828 * present or has an invalid value, that piece is ignored by the pipeline. 829 * </pre> 830 * 831 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 832 * 833 * @param value The key to set. 834 * @return This builder for chaining. 835 */ setKey(java.lang.String value)836 public Builder setKey(java.lang.String value) { 837 if (value == null) { 838 throw new NullPointerException(); 839 } 840 key_ = value; 841 bitField0_ |= 0x00000008; 842 onChanged(); 843 return this; 844 } 845 /** 846 * 847 * 848 * <pre> 849 * Required. The key is a name of one of the Dataset's data columns. 850 * The values of the key (the values in the column) must be in RFC 3339 851 * `date-time` format, where `time-offset` = `"Z"` 852 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 853 * present or has an invalid value, that piece is ignored by the pipeline. 854 * </pre> 855 * 856 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 857 * 858 * @return This builder for chaining. 859 */ clearKey()860 public Builder clearKey() { 861 key_ = getDefaultInstance().getKey(); 862 bitField0_ = (bitField0_ & ~0x00000008); 863 onChanged(); 864 return this; 865 } 866 /** 867 * 868 * 869 * <pre> 870 * Required. The key is a name of one of the Dataset's data columns. 871 * The values of the key (the values in the column) must be in RFC 3339 872 * `date-time` format, where `time-offset` = `"Z"` 873 * (e.g. 1985-04-12T23:20:50.52Z). If for a piece of data the key is not 874 * present or has an invalid value, that piece is ignored by the pipeline. 875 * </pre> 876 * 877 * <code>string key = 4 [(.google.api.field_behavior) = REQUIRED];</code> 878 * 879 * @param value The bytes for key to set. 880 * @return This builder for chaining. 881 */ setKeyBytes(com.google.protobuf.ByteString value)882 public Builder setKeyBytes(com.google.protobuf.ByteString value) { 883 if (value == null) { 884 throw new NullPointerException(); 885 } 886 checkByteStringIsUtf8(value); 887 key_ = value; 888 bitField0_ |= 0x00000008; 889 onChanged(); 890 return this; 891 } 892 893 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)894 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 895 return super.setUnknownFields(unknownFields); 896 } 897 898 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)899 public final Builder mergeUnknownFields( 900 final com.google.protobuf.UnknownFieldSet unknownFields) { 901 return super.mergeUnknownFields(unknownFields); 902 } 903 904 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.TimestampSplit) 905 } 906 907 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.TimestampSplit) 908 private static final com.google.cloud.aiplatform.v1.TimestampSplit DEFAULT_INSTANCE; 909 910 static { 911 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.TimestampSplit(); 912 } 913 getDefaultInstance()914 public static com.google.cloud.aiplatform.v1.TimestampSplit getDefaultInstance() { 915 return DEFAULT_INSTANCE; 916 } 917 918 private static final com.google.protobuf.Parser<TimestampSplit> PARSER = 919 new com.google.protobuf.AbstractParser<TimestampSplit>() { 920 @java.lang.Override 921 public TimestampSplit parsePartialFrom( 922 com.google.protobuf.CodedInputStream input, 923 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 924 throws com.google.protobuf.InvalidProtocolBufferException { 925 Builder builder = newBuilder(); 926 try { 927 builder.mergeFrom(input, extensionRegistry); 928 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 929 throw e.setUnfinishedMessage(builder.buildPartial()); 930 } catch (com.google.protobuf.UninitializedMessageException e) { 931 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 932 } catch (java.io.IOException e) { 933 throw new com.google.protobuf.InvalidProtocolBufferException(e) 934 .setUnfinishedMessage(builder.buildPartial()); 935 } 936 return builder.buildPartial(); 937 } 938 }; 939 parser()940 public static com.google.protobuf.Parser<TimestampSplit> parser() { 941 return PARSER; 942 } 943 944 @java.lang.Override getParserForType()945 public com.google.protobuf.Parser<TimestampSplit> getParserForType() { 946 return PARSER; 947 } 948 949 @java.lang.Override getDefaultInstanceForType()950 public com.google.cloud.aiplatform.v1.TimestampSplit getDefaultInstanceForType() { 951 return DEFAULT_INSTANCE; 952 } 953 } 954