Class CreateTrialRequest.Builder (3.42.0)

public static final class CreateTrialRequest.Builder extends GeneratedMessageV3.Builder<CreateTrialRequest.Builder> implements CreateTrialRequestOrBuilder

Request message for VizierService.CreateTrial.

Protobuf type google.cloud.aiplatform.v1.CreateTrialRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTrialRequest build()
Returns
Type Description
CreateTrialRequest

buildPartial()

public CreateTrialRequest buildPartial()
Returns
Type Description
CreateTrialRequest

clear()

public CreateTrialRequest.Builder clear()
Returns
Type Description
CreateTrialRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTrialRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateTrialRequest.Builder
Overrides

clearParent()

public CreateTrialRequest.Builder clearParent()

Required. The resource name of the Study to create the Trial in. Format: projects/{project}/locations/{location}/studies/{study}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateTrialRequest.Builder

This builder for chaining.

clearTrial()

public CreateTrialRequest.Builder clearTrial()

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTrialRequest.Builder

clone()

public CreateTrialRequest.Builder clone()
Returns
Type Description
CreateTrialRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateTrialRequest getDefaultInstanceForType()
Returns
Type Description
CreateTrialRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the Study to create the Trial in. Format: projects/{project}/locations/{location}/studies/{study}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Study to create the Trial in. Format: projects/{project}/locations/{location}/studies/{study}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTrial()

public Trial getTrial()

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trial

The trial.

getTrialBuilder()

public Trial.Builder getTrialBuilder()

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trial.Builder

getTrialOrBuilder()

public TrialOrBuilder getTrialOrBuilder()

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TrialOrBuilder

hasTrial()

public boolean hasTrial()

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the trial field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTrialRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrial(Trial value)

public CreateTrialRequest.Builder mergeTrial(Trial value)

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Trial
Returns
Type Description
CreateTrialRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateTrialRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateTrialRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateTrialRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateTrialRequest.Builder
Overrides

setParent(String value)

public CreateTrialRequest.Builder setParent(String value)

Required. The resource name of the Study to create the Trial in. Format: projects/{project}/locations/{location}/studies/{study}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTrialRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTrialRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Study to create the Trial in. Format: projects/{project}/locations/{location}/studies/{study}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateTrialRequest.Builder

This builder for chaining.

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

public CreateTrialRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateTrialRequest.Builder
Overrides

setTrial(Trial value)

public CreateTrialRequest.Builder setTrial(Trial value)

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Trial
Returns
Type Description
CreateTrialRequest.Builder

setTrial(Trial.Builder builderForValue)

public CreateTrialRequest.Builder setTrial(Trial.Builder builderForValue)

Required. The Trial to create.

.google.cloud.aiplatform.v1.Trial trial = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Trial.Builder
Returns
Type Description
CreateTrialRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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