Class StudySpec.TransferLearningConfig.Builder (3.49.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
Type Description
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
Name Description
values Iterable<String>

The priorStudyNames to add.

Returns
Type Description
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
Name Description
value String

The priorStudyNames to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the priorStudyNames to add.

Returns
Type Description
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.TransferLearningConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides

build()

public StudySpec.TransferLearningConfig build()
Returns
Type Description
StudySpec.TransferLearningConfig

buildPartial()

public StudySpec.TransferLearningConfig buildPartial()
Returns
Type Description
StudySpec.TransferLearningConfig

clear()

public StudySpec.TransferLearningConfig.Builder clear()
Returns
Type Description
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
Type Description
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StudySpec.TransferLearningConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StudySpec.TransferLearningConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

clone()

public StudySpec.TransferLearningConfig.Builder clone()
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides

getDefaultInstanceForType()

public StudySpec.TransferLearningConfig getDefaultInstanceForType()
Returns
Type Description
StudySpec.TransferLearningConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the priorStudyNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StudySpec.TransferLearningConfig other)

public StudySpec.TransferLearningConfig.Builder mergeFrom(StudySpec.TransferLearningConfig other)
Parameter
Name Description
other StudySpec.TransferLearningConfig
Returns
Type Description
StudySpec.TransferLearningConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StudySpec.TransferLearningConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StudySpec.TransferLearningConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.TransferLearningConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The disableTransferLearning to set.

Returns
Type Description
StudySpec.TransferLearningConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StudySpec.TransferLearningConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The priorStudyNames to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StudySpec.TransferLearningConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StudySpec.TransferLearningConfig.Builder
Overrides