Class RunTestCaseRequest.Builder (0.32.0)

public static final class RunTestCaseRequest.Builder extends GeneratedMessageV3.Builder<RunTestCaseRequest.Builder> implements RunTestCaseRequestOrBuilder

The request message for TestCases.RunTestCase.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunTestCaseRequest build()
Returns
Type Description
RunTestCaseRequest

buildPartial()

public RunTestCaseRequest buildPartial()
Returns
Type Description
RunTestCaseRequest

clear()

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

clearEnvironment()

public RunTestCaseRequest.Builder clearEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RunTestCaseRequest.Builder clearName()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

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

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RunTestCaseRequest getDefaultInstanceForType()
Returns
Type Description
RunTestCaseRequest

getDescriptorForType()

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

getEnvironment()

public String getEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The environment.

getEnvironmentBytes()

public ByteString getEnvironmentBytes()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for environment.

getName()

public String getName()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunTestCaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnvironment(String value)

public RunTestCaseRequest.Builder setEnvironment(String value)

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The environment to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

setEnvironmentBytes(ByteString value)

public RunTestCaseRequest.Builder setEnvironmentBytes(ByteString value)

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for environment to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RunTestCaseRequest.Builder setName(String value)

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RunTestCaseRequest.Builder setNameBytes(ByteString value)

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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