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.v3.RunTestCaseRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RunTestCaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RunTestCaseRequest build()
Returns
buildPartial()
public RunTestCaseRequest buildPartial()
Returns
clear()
public RunTestCaseRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public RunTestCaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public RunTestCaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public RunTestCaseRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public RunTestCaseRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(RunTestCaseRequest other)
public RunTestCaseRequest.Builder mergeFrom(RunTestCaseRequest other)
Parameter
Returns
public RunTestCaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RunTestCaseRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RunTestCaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public RunTestCaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RunTestCaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RunTestCaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides