Class CreateTrialRequest.Builder (3.20.0)

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

Request message for VizierService.CreateTrial.

Protobuf type google.cloud.aiplatform.v1beta1.CreateTrialRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTrialRequest build()
Returns
TypeDescription
CreateTrialRequest

buildPartial()

public CreateTrialRequest buildPartial()
Returns
TypeDescription
CreateTrialRequest

clear()

public CreateTrialRequest.Builder clear()
Returns
TypeDescription
CreateTrialRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTrialRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateTrialRequest.Builder

This builder for chaining.

clearTrial()

public CreateTrialRequest.Builder clearTrial()

Required. The Trial to create.

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

Returns
TypeDescription
CreateTrialRequest.Builder

clone()

public CreateTrialRequest.Builder clone()
Returns
TypeDescription
CreateTrialRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateTrialRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTrialRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getTrial()

public Trial getTrial()

Required. The Trial to create.

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

Returns
TypeDescription
Trial

The trial.

getTrialBuilder()

public Trial.Builder getTrialBuilder()

Required. The Trial to create.

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

Returns
TypeDescription
Trial.Builder

getTrialOrBuilder()

public TrialOrBuilder getTrialOrBuilder()

Required. The Trial to create.

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

Returns
TypeDescription
TrialOrBuilder

hasTrial()

public boolean hasTrial()

Required. The Trial to create.

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

Returns
TypeDescription
boolean

Whether the trial field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTrialRequest other)

public CreateTrialRequest.Builder mergeFrom(CreateTrialRequest other)
Parameter
NameDescription
otherCreateTrialRequest
Returns
TypeDescription
CreateTrialRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrial(Trial value)

public CreateTrialRequest.Builder mergeTrial(Trial value)

Required. The Trial to create.

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

Parameter
NameDescription
valueTrial
Returns
TypeDescription
CreateTrialRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateTrialRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateTrialRequest.Builder
Overrides

setTrial(Trial value)

public CreateTrialRequest.Builder setTrial(Trial value)

Required. The Trial to create.

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

Parameter
NameDescription
valueTrial
Returns
TypeDescription
CreateTrialRequest.Builder

setTrial(Trial.Builder builderForValue)

public CreateTrialRequest.Builder setTrial(Trial.Builder builderForValue)

Required. The Trial to create.

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

Parameter
NameDescription
builderForValueTrial.Builder
Returns
TypeDescription
CreateTrialRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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