Class CreateExperimentRequest.Builder (0.14.0)

public static final class CreateExperimentRequest.Builder extends GeneratedMessageV3.Builder<CreateExperimentRequest.Builder> implements CreateExperimentRequestOrBuilder

The request message for Experiments.CreateExperiment.

Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateExperimentRequest build()
Returns
TypeDescription
CreateExperimentRequest

buildPartial()

public CreateExperimentRequest buildPartial()
Returns
TypeDescription
CreateExperimentRequest

clear()

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

clearExperiment()

public CreateExperimentRequest.Builder clearExperiment()

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateExperimentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateExperimentRequest.Builder clearParent()

Required. The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

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

Returns
TypeDescription
CreateExperimentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateExperimentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateExperimentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExperiment()

public Experiment getExperiment()

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Experiment

The experiment.

getExperimentBuilder()

public Experiment.Builder getExperimentBuilder()

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Experiment.Builder

getExperimentOrBuilder()

public ExperimentOrBuilder getExperimentOrBuilder()

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExperimentOrBuilder

getParent()

public String getParent()

Required. The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasExperiment()

public boolean hasExperiment()

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the experiment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExperiment(Experiment value)

public CreateExperimentRequest.Builder mergeExperiment(Experiment value)

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueExperiment
Returns
TypeDescription
CreateExperimentRequest.Builder

mergeFrom(CreateExperimentRequest other)

public CreateExperimentRequest.Builder mergeFrom(CreateExperimentRequest other)
Parameter
NameDescription
otherCreateExperimentRequest
Returns
TypeDescription
CreateExperimentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExperiment(Experiment value)

public CreateExperimentRequest.Builder setExperiment(Experiment value)

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueExperiment
Returns
TypeDescription
CreateExperimentRequest.Builder

setExperiment(Experiment.Builder builderForValue)

public CreateExperimentRequest.Builder setExperiment(Experiment.Builder builderForValue)

Required. The experiment to create.

.google.cloud.dialogflow.cx.v3beta1.Experiment experiment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueExperiment.Builder
Returns
TypeDescription
CreateExperimentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateExperimentRequest.Builder setParent(String value)

Required. The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateExperimentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateExperimentRequest.Builder setParentBytes(ByteString value)

Required. The Agent to create an Environment for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateExperimentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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