• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 the input data to training, validation, and test sets as per the
26  * given fractions. Any of `training_fraction`, `validation_fraction` and
27  * `test_fraction` may optionally be provided, they must sum to up to 1. If the
28  * provided ones sum to less than 1, the remainder is assigned to sets as
29  * decided by Vertex AI. If none of the fractions are set, by default roughly
30  * 80% of data is used for training, 10% for validation, and 10% for test.
31  * </pre>
32  *
33  * Protobuf type {@code google.cloud.aiplatform.v1.FractionSplit}
34  */
35 public final class FractionSplit extends com.google.protobuf.GeneratedMessageV3
36     implements
37     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FractionSplit)
38     FractionSplitOrBuilder {
39   private static final long serialVersionUID = 0L;
40   // Use FractionSplit.newBuilder() to construct.
FractionSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)41   private FractionSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
42     super(builder);
43   }
44 
FractionSplit()45   private FractionSplit() {}
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new FractionSplit();
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_FractionSplit_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_FractionSplit_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.aiplatform.v1.FractionSplit.class,
70             com.google.cloud.aiplatform.v1.FractionSplit.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   private byte memoizedIsInitialized = -1;
128 
129   @java.lang.Override
isInitialized()130   public final boolean isInitialized() {
131     byte isInitialized = memoizedIsInitialized;
132     if (isInitialized == 1) return true;
133     if (isInitialized == 0) return false;
134 
135     memoizedIsInitialized = 1;
136     return true;
137   }
138 
139   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)140   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
141     if (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) {
142       output.writeDouble(1, trainingFraction_);
143     }
144     if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) {
145       output.writeDouble(2, validationFraction_);
146     }
147     if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) {
148       output.writeDouble(3, testFraction_);
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 (java.lang.Double.doubleToRawLongBits(trainingFraction_) != 0) {
160       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, trainingFraction_);
161     }
162     if (java.lang.Double.doubleToRawLongBits(validationFraction_) != 0) {
163       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, validationFraction_);
164     }
165     if (java.lang.Double.doubleToRawLongBits(testFraction_) != 0) {
166       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, testFraction_);
167     }
168     size += getUnknownFields().getSerializedSize();
169     memoizedSize = size;
170     return size;
171   }
172 
173   @java.lang.Override
equals(final java.lang.Object obj)174   public boolean equals(final java.lang.Object obj) {
175     if (obj == this) {
176       return true;
177     }
178     if (!(obj instanceof com.google.cloud.aiplatform.v1.FractionSplit)) {
179       return super.equals(obj);
180     }
181     com.google.cloud.aiplatform.v1.FractionSplit other =
182         (com.google.cloud.aiplatform.v1.FractionSplit) obj;
183 
184     if (java.lang.Double.doubleToLongBits(getTrainingFraction())
185         != java.lang.Double.doubleToLongBits(other.getTrainingFraction())) return false;
186     if (java.lang.Double.doubleToLongBits(getValidationFraction())
187         != java.lang.Double.doubleToLongBits(other.getValidationFraction())) return false;
188     if (java.lang.Double.doubleToLongBits(getTestFraction())
189         != java.lang.Double.doubleToLongBits(other.getTestFraction())) return false;
190     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
191     return true;
192   }
193 
194   @java.lang.Override
hashCode()195   public int hashCode() {
196     if (memoizedHashCode != 0) {
197       return memoizedHashCode;
198     }
199     int hash = 41;
200     hash = (19 * hash) + getDescriptor().hashCode();
201     hash = (37 * hash) + TRAINING_FRACTION_FIELD_NUMBER;
202     hash =
203         (53 * hash)
204             + com.google.protobuf.Internal.hashLong(
205                 java.lang.Double.doubleToLongBits(getTrainingFraction()));
206     hash = (37 * hash) + VALIDATION_FRACTION_FIELD_NUMBER;
207     hash =
208         (53 * hash)
209             + com.google.protobuf.Internal.hashLong(
210                 java.lang.Double.doubleToLongBits(getValidationFraction()));
211     hash = (37 * hash) + TEST_FRACTION_FIELD_NUMBER;
212     hash =
213         (53 * hash)
214             + com.google.protobuf.Internal.hashLong(
215                 java.lang.Double.doubleToLongBits(getTestFraction()));
216     hash = (29 * hash) + getUnknownFields().hashCode();
217     memoizedHashCode = hash;
218     return hash;
219   }
220 
parseFrom(java.nio.ByteBuffer data)221   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(java.nio.ByteBuffer data)
222       throws com.google.protobuf.InvalidProtocolBufferException {
223     return PARSER.parseFrom(data);
224   }
225 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)226   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
227       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
228       throws com.google.protobuf.InvalidProtocolBufferException {
229     return PARSER.parseFrom(data, extensionRegistry);
230   }
231 
parseFrom( com.google.protobuf.ByteString data)232   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
233       com.google.protobuf.ByteString data)
234       throws com.google.protobuf.InvalidProtocolBufferException {
235     return PARSER.parseFrom(data);
236   }
237 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)238   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
239       com.google.protobuf.ByteString data,
240       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
241       throws com.google.protobuf.InvalidProtocolBufferException {
242     return PARSER.parseFrom(data, extensionRegistry);
243   }
244 
parseFrom(byte[] data)245   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(byte[] data)
246       throws com.google.protobuf.InvalidProtocolBufferException {
247     return PARSER.parseFrom(data);
248   }
249 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)250   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
251       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
252       throws com.google.protobuf.InvalidProtocolBufferException {
253     return PARSER.parseFrom(data, extensionRegistry);
254   }
255 
parseFrom(java.io.InputStream input)256   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(java.io.InputStream input)
257       throws java.io.IOException {
258     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
259   }
260 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)261   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
262       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
263       throws java.io.IOException {
264     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
265         PARSER, input, extensionRegistry);
266   }
267 
parseDelimitedFrom( java.io.InputStream input)268   public static com.google.cloud.aiplatform.v1.FractionSplit parseDelimitedFrom(
269       java.io.InputStream input) throws java.io.IOException {
270     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
271   }
272 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)273   public static com.google.cloud.aiplatform.v1.FractionSplit parseDelimitedFrom(
274       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275       throws java.io.IOException {
276     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
277         PARSER, input, extensionRegistry);
278   }
279 
parseFrom( com.google.protobuf.CodedInputStream input)280   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
281       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
282     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
283   }
284 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)285   public static com.google.cloud.aiplatform.v1.FractionSplit parseFrom(
286       com.google.protobuf.CodedInputStream input,
287       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288       throws java.io.IOException {
289     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
290         PARSER, input, extensionRegistry);
291   }
292 
293   @java.lang.Override
newBuilderForType()294   public Builder newBuilderForType() {
295     return newBuilder();
296   }
297 
newBuilder()298   public static Builder newBuilder() {
299     return DEFAULT_INSTANCE.toBuilder();
300   }
301 
newBuilder(com.google.cloud.aiplatform.v1.FractionSplit prototype)302   public static Builder newBuilder(com.google.cloud.aiplatform.v1.FractionSplit prototype) {
303     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
304   }
305 
306   @java.lang.Override
toBuilder()307   public Builder toBuilder() {
308     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
309   }
310 
311   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)312   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
313     Builder builder = new Builder(parent);
314     return builder;
315   }
316   /**
317    *
318    *
319    * <pre>
320    * Assigns the input data to training, validation, and test sets as per the
321    * given fractions. Any of `training_fraction`, `validation_fraction` and
322    * `test_fraction` may optionally be provided, they must sum to up to 1. If the
323    * provided ones sum to less than 1, the remainder is assigned to sets as
324    * decided by Vertex AI. If none of the fractions are set, by default roughly
325    * 80% of data is used for training, 10% for validation, and 10% for test.
326    * </pre>
327    *
328    * Protobuf type {@code google.cloud.aiplatform.v1.FractionSplit}
329    */
330   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
331       implements
332       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FractionSplit)
333       com.google.cloud.aiplatform.v1.FractionSplitOrBuilder {
getDescriptor()334     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
335       return com.google.cloud.aiplatform.v1.TrainingPipelineProto
336           .internal_static_google_cloud_aiplatform_v1_FractionSplit_descriptor;
337     }
338 
339     @java.lang.Override
340     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()341         internalGetFieldAccessorTable() {
342       return com.google.cloud.aiplatform.v1.TrainingPipelineProto
343           .internal_static_google_cloud_aiplatform_v1_FractionSplit_fieldAccessorTable
344           .ensureFieldAccessorsInitialized(
345               com.google.cloud.aiplatform.v1.FractionSplit.class,
346               com.google.cloud.aiplatform.v1.FractionSplit.Builder.class);
347     }
348 
349     // Construct using com.google.cloud.aiplatform.v1.FractionSplit.newBuilder()
Builder()350     private Builder() {}
351 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)352     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
353       super(parent);
354     }
355 
356     @java.lang.Override
clear()357     public Builder clear() {
358       super.clear();
359       bitField0_ = 0;
360       trainingFraction_ = 0D;
361       validationFraction_ = 0D;
362       testFraction_ = 0D;
363       return this;
364     }
365 
366     @java.lang.Override
getDescriptorForType()367     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
368       return com.google.cloud.aiplatform.v1.TrainingPipelineProto
369           .internal_static_google_cloud_aiplatform_v1_FractionSplit_descriptor;
370     }
371 
372     @java.lang.Override
getDefaultInstanceForType()373     public com.google.cloud.aiplatform.v1.FractionSplit getDefaultInstanceForType() {
374       return com.google.cloud.aiplatform.v1.FractionSplit.getDefaultInstance();
375     }
376 
377     @java.lang.Override
build()378     public com.google.cloud.aiplatform.v1.FractionSplit build() {
379       com.google.cloud.aiplatform.v1.FractionSplit result = buildPartial();
380       if (!result.isInitialized()) {
381         throw newUninitializedMessageException(result);
382       }
383       return result;
384     }
385 
386     @java.lang.Override
buildPartial()387     public com.google.cloud.aiplatform.v1.FractionSplit buildPartial() {
388       com.google.cloud.aiplatform.v1.FractionSplit result =
389           new com.google.cloud.aiplatform.v1.FractionSplit(this);
390       if (bitField0_ != 0) {
391         buildPartial0(result);
392       }
393       onBuilt();
394       return result;
395     }
396 
buildPartial0(com.google.cloud.aiplatform.v1.FractionSplit result)397     private void buildPartial0(com.google.cloud.aiplatform.v1.FractionSplit result) {
398       int from_bitField0_ = bitField0_;
399       if (((from_bitField0_ & 0x00000001) != 0)) {
400         result.trainingFraction_ = trainingFraction_;
401       }
402       if (((from_bitField0_ & 0x00000002) != 0)) {
403         result.validationFraction_ = validationFraction_;
404       }
405       if (((from_bitField0_ & 0x00000004) != 0)) {
406         result.testFraction_ = testFraction_;
407       }
408     }
409 
410     @java.lang.Override
clone()411     public Builder clone() {
412       return super.clone();
413     }
414 
415     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)416     public Builder setField(
417         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
418       return super.setField(field, value);
419     }
420 
421     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)422     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
423       return super.clearField(field);
424     }
425 
426     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)427     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
428       return super.clearOneof(oneof);
429     }
430 
431     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)432     public Builder setRepeatedField(
433         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
434       return super.setRepeatedField(field, index, value);
435     }
436 
437     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)438     public Builder addRepeatedField(
439         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
440       return super.addRepeatedField(field, value);
441     }
442 
443     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)444     public Builder mergeFrom(com.google.protobuf.Message other) {
445       if (other instanceof com.google.cloud.aiplatform.v1.FractionSplit) {
446         return mergeFrom((com.google.cloud.aiplatform.v1.FractionSplit) other);
447       } else {
448         super.mergeFrom(other);
449         return this;
450       }
451     }
452 
mergeFrom(com.google.cloud.aiplatform.v1.FractionSplit other)453     public Builder mergeFrom(com.google.cloud.aiplatform.v1.FractionSplit other) {
454       if (other == com.google.cloud.aiplatform.v1.FractionSplit.getDefaultInstance()) return this;
455       if (other.getTrainingFraction() != 0D) {
456         setTrainingFraction(other.getTrainingFraction());
457       }
458       if (other.getValidationFraction() != 0D) {
459         setValidationFraction(other.getValidationFraction());
460       }
461       if (other.getTestFraction() != 0D) {
462         setTestFraction(other.getTestFraction());
463       }
464       this.mergeUnknownFields(other.getUnknownFields());
465       onChanged();
466       return this;
467     }
468 
469     @java.lang.Override
isInitialized()470     public final boolean isInitialized() {
471       return true;
472     }
473 
474     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)475     public Builder mergeFrom(
476         com.google.protobuf.CodedInputStream input,
477         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
478         throws java.io.IOException {
479       if (extensionRegistry == null) {
480         throw new java.lang.NullPointerException();
481       }
482       try {
483         boolean done = false;
484         while (!done) {
485           int tag = input.readTag();
486           switch (tag) {
487             case 0:
488               done = true;
489               break;
490             case 9:
491               {
492                 trainingFraction_ = input.readDouble();
493                 bitField0_ |= 0x00000001;
494                 break;
495               } // case 9
496             case 17:
497               {
498                 validationFraction_ = input.readDouble();
499                 bitField0_ |= 0x00000002;
500                 break;
501               } // case 17
502             case 25:
503               {
504                 testFraction_ = input.readDouble();
505                 bitField0_ |= 0x00000004;
506                 break;
507               } // case 25
508             default:
509               {
510                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
511                   done = true; // was an endgroup tag
512                 }
513                 break;
514               } // default:
515           } // switch (tag)
516         } // while (!done)
517       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
518         throw e.unwrapIOException();
519       } finally {
520         onChanged();
521       } // finally
522       return this;
523     }
524 
525     private int bitField0_;
526 
527     private double trainingFraction_;
528     /**
529      *
530      *
531      * <pre>
532      * The fraction of the input data that is to be used to train the Model.
533      * </pre>
534      *
535      * <code>double training_fraction = 1;</code>
536      *
537      * @return The trainingFraction.
538      */
539     @java.lang.Override
getTrainingFraction()540     public double getTrainingFraction() {
541       return trainingFraction_;
542     }
543     /**
544      *
545      *
546      * <pre>
547      * The fraction of the input data that is to be used to train the Model.
548      * </pre>
549      *
550      * <code>double training_fraction = 1;</code>
551      *
552      * @param value The trainingFraction to set.
553      * @return This builder for chaining.
554      */
setTrainingFraction(double value)555     public Builder setTrainingFraction(double value) {
556 
557       trainingFraction_ = value;
558       bitField0_ |= 0x00000001;
559       onChanged();
560       return this;
561     }
562     /**
563      *
564      *
565      * <pre>
566      * The fraction of the input data that is to be used to train the Model.
567      * </pre>
568      *
569      * <code>double training_fraction = 1;</code>
570      *
571      * @return This builder for chaining.
572      */
clearTrainingFraction()573     public Builder clearTrainingFraction() {
574       bitField0_ = (bitField0_ & ~0x00000001);
575       trainingFraction_ = 0D;
576       onChanged();
577       return this;
578     }
579 
580     private double validationFraction_;
581     /**
582      *
583      *
584      * <pre>
585      * The fraction of the input data that is to be used to validate the Model.
586      * </pre>
587      *
588      * <code>double validation_fraction = 2;</code>
589      *
590      * @return The validationFraction.
591      */
592     @java.lang.Override
getValidationFraction()593     public double getValidationFraction() {
594       return validationFraction_;
595     }
596     /**
597      *
598      *
599      * <pre>
600      * The fraction of the input data that is to be used to validate the Model.
601      * </pre>
602      *
603      * <code>double validation_fraction = 2;</code>
604      *
605      * @param value The validationFraction to set.
606      * @return This builder for chaining.
607      */
setValidationFraction(double value)608     public Builder setValidationFraction(double value) {
609 
610       validationFraction_ = value;
611       bitField0_ |= 0x00000002;
612       onChanged();
613       return this;
614     }
615     /**
616      *
617      *
618      * <pre>
619      * The fraction of the input data that is to be used to validate the Model.
620      * </pre>
621      *
622      * <code>double validation_fraction = 2;</code>
623      *
624      * @return This builder for chaining.
625      */
clearValidationFraction()626     public Builder clearValidationFraction() {
627       bitField0_ = (bitField0_ & ~0x00000002);
628       validationFraction_ = 0D;
629       onChanged();
630       return this;
631     }
632 
633     private double testFraction_;
634     /**
635      *
636      *
637      * <pre>
638      * The fraction of the input data that is to be used to evaluate the Model.
639      * </pre>
640      *
641      * <code>double test_fraction = 3;</code>
642      *
643      * @return The testFraction.
644      */
645     @java.lang.Override
getTestFraction()646     public double getTestFraction() {
647       return testFraction_;
648     }
649     /**
650      *
651      *
652      * <pre>
653      * The fraction of the input data that is to be used to evaluate the Model.
654      * </pre>
655      *
656      * <code>double test_fraction = 3;</code>
657      *
658      * @param value The testFraction to set.
659      * @return This builder for chaining.
660      */
setTestFraction(double value)661     public Builder setTestFraction(double value) {
662 
663       testFraction_ = value;
664       bitField0_ |= 0x00000004;
665       onChanged();
666       return this;
667     }
668     /**
669      *
670      *
671      * <pre>
672      * The fraction of the input data that is to be used to evaluate the Model.
673      * </pre>
674      *
675      * <code>double test_fraction = 3;</code>
676      *
677      * @return This builder for chaining.
678      */
clearTestFraction()679     public Builder clearTestFraction() {
680       bitField0_ = (bitField0_ & ~0x00000004);
681       testFraction_ = 0D;
682       onChanged();
683       return this;
684     }
685 
686     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)687     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
688       return super.setUnknownFields(unknownFields);
689     }
690 
691     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)692     public final Builder mergeUnknownFields(
693         final com.google.protobuf.UnknownFieldSet unknownFields) {
694       return super.mergeUnknownFields(unknownFields);
695     }
696 
697     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.FractionSplit)
698   }
699 
700   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FractionSplit)
701   private static final com.google.cloud.aiplatform.v1.FractionSplit DEFAULT_INSTANCE;
702 
703   static {
704     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.FractionSplit();
705   }
706 
getDefaultInstance()707   public static com.google.cloud.aiplatform.v1.FractionSplit getDefaultInstance() {
708     return DEFAULT_INSTANCE;
709   }
710 
711   private static final com.google.protobuf.Parser<FractionSplit> PARSER =
712       new com.google.protobuf.AbstractParser<FractionSplit>() {
713         @java.lang.Override
714         public FractionSplit parsePartialFrom(
715             com.google.protobuf.CodedInputStream input,
716             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
717             throws com.google.protobuf.InvalidProtocolBufferException {
718           Builder builder = newBuilder();
719           try {
720             builder.mergeFrom(input, extensionRegistry);
721           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
722             throw e.setUnfinishedMessage(builder.buildPartial());
723           } catch (com.google.protobuf.UninitializedMessageException e) {
724             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
725           } catch (java.io.IOException e) {
726             throw new com.google.protobuf.InvalidProtocolBufferException(e)
727                 .setUnfinishedMessage(builder.buildPartial());
728           }
729           return builder.buildPartial();
730         }
731       };
732 
parser()733   public static com.google.protobuf.Parser<FractionSplit> parser() {
734     return PARSER;
735   }
736 
737   @java.lang.Override
getParserForType()738   public com.google.protobuf.Parser<FractionSplit> getParserForType() {
739     return PARSER;
740   }
741 
742   @java.lang.Override
getDefaultInstanceForType()743   public com.google.cloud.aiplatform.v1.FractionSplit getDefaultInstanceForType() {
744     return DEFAULT_INSTANCE;
745   }
746 }
747