Class StudySpec.TransferLearningConfig.Builder (3.8.0)

public static final class StudySpec.TransferLearningConfig.Builder extends GeneratedMessageV3.Builder<StudySpec.TransferLearningConfig.Builder> implements StudySpec.TransferLearningConfigOrBuilder

This contains flag for manually disabling transfer learning for a study. The names of prior studies being used for transfer learning (if any) are also listed here.

Protobuf type google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPriorStudyNames(Iterable<String> values)

public StudySpec.TransferLearningConfig.Builder addAllPriorStudyNames(Iterable<String> values)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The priorStudyNames to add.

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

addPriorStudyNames(String value)

public StudySpec.TransferLearningConfig.Builder addPriorStudyNames(String value)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The priorStudyNames to add.

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

addPriorStudyNamesBytes(ByteString value)

public StudySpec.TransferLearningConfig.Builder addPriorStudyNamesBytes(ByteString value)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the priorStudyNames to add.

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.TransferLearningConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

build()

public StudySpec.TransferLearningConfig build()
Returns
TypeDescription
StudySpec.TransferLearningConfig

buildPartial()

public StudySpec.TransferLearningConfig buildPartial()
Returns
TypeDescription
StudySpec.TransferLearningConfig

clear()

public StudySpec.TransferLearningConfig.Builder clear()
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

clearDisableTransferLearning()

public StudySpec.TransferLearningConfig.Builder clearDisableTransferLearning()

Flag to to manually prevent vizier from using transfer learning on a new study. Otherwise, vizier will automatically determine whether or not to use transfer learning.

bool disable_transfer_learning = 1;

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StudySpec.TransferLearningConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StudySpec.TransferLearningConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

clearPriorStudyNames()

public StudySpec.TransferLearningConfig.Builder clearPriorStudyNames()

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

clone()

public StudySpec.TransferLearningConfig.Builder clone()
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

getDefaultInstanceForType()

public StudySpec.TransferLearningConfig getDefaultInstanceForType()
Returns
TypeDescription
StudySpec.TransferLearningConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisableTransferLearning()

public boolean getDisableTransferLearning()

Flag to to manually prevent vizier from using transfer learning on a new study. Otherwise, vizier will automatically determine whether or not to use transfer learning.

bool disable_transfer_learning = 1;

Returns
TypeDescription
boolean

The disableTransferLearning.

getPriorStudyNames(int index)

public String getPriorStudyNames(int index)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The priorStudyNames at the given index.

getPriorStudyNamesBytes(int index)

public ByteString getPriorStudyNamesBytes(int index)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the priorStudyNames at the given index.

getPriorStudyNamesCount()

public int getPriorStudyNamesCount()

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of priorStudyNames.

getPriorStudyNamesList()

public ProtocolStringList getPriorStudyNamesList()

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the priorStudyNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StudySpec.TransferLearningConfig other)

public StudySpec.TransferLearningConfig.Builder mergeFrom(StudySpec.TransferLearningConfig other)
Parameter
NameDescription
otherStudySpec.TransferLearningConfig
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StudySpec.TransferLearningConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StudySpec.TransferLearningConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.TransferLearningConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

setDisableTransferLearning(boolean value)

public StudySpec.TransferLearningConfig.Builder setDisableTransferLearning(boolean value)

Flag to to manually prevent vizier from using transfer learning on a new study. Otherwise, vizier will automatically determine whether or not to use transfer learning.

bool disable_transfer_learning = 1;

Parameter
NameDescription
valueboolean

The disableTransferLearning to set.

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.TransferLearningConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

setPriorStudyNames(int index, String value)

public StudySpec.TransferLearningConfig.Builder setPriorStudyNames(int index, String value)

Output only. Names of previously completed studies

repeated string prior_study_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The priorStudyNames to set.

Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StudySpec.TransferLearningConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.TransferLearningConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StudySpec.TransferLearningConfig.Builder
Overrides