Class BatchRunTestCasesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
- com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.Builder
-
- All Implemented Interfaces:
BatchRunTestCasesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchRunTestCasesRequest
public static final class BatchRunTestCasesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder> implements BatchRunTestCasesRequestOrBuilder
The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
Protobuf typegoogle.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
clear
public BatchRunTestCasesRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
getDefaultInstanceForType
public BatchRunTestCasesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchRunTestCasesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchRunTestCasesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchRunTestCasesRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
setField
public BatchRunTestCasesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
clearField
public BatchRunTestCasesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
clearOneof
public BatchRunTestCasesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
setRepeatedField
public BatchRunTestCasesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
addRepeatedField
public BatchRunTestCasesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
mergeFrom
public BatchRunTestCasesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchRunTestCasesRequest.Builder>
-
mergeFrom
public BatchRunTestCasesRequest.Builder mergeFrom(BatchRunTestCasesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
mergeFrom
public BatchRunTestCasesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchRunTestCasesRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/ <AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParent
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/ <AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public BatchRunTestCasesRequest.Builder setParent(String value)
Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/ <AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public BatchRunTestCasesRequest.Builder clearParent()
Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/ <AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public BatchRunTestCasesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/ <AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getEnvironment
public String getEnvironment()
Optional. 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) = { ... }
- Specified by:
getEnvironment
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- The environment.
-
getEnvironmentBytes
public com.google.protobuf.ByteString getEnvironmentBytes()
Optional. 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) = { ... }
- Specified by:
getEnvironmentBytes
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- The bytes for environment.
-
setEnvironment
public BatchRunTestCasesRequest.Builder setEnvironment(String value)
Optional. 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) = { ... }
- Parameters:
value
- The environment to set.- Returns:
- This builder for chaining.
-
clearEnvironment
public BatchRunTestCasesRequest.Builder clearEnvironment()
Optional. 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:
- This builder for chaining.
-
setEnvironmentBytes
public BatchRunTestCasesRequest.Builder setEnvironmentBytes(com.google.protobuf.ByteString value)
Optional. 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) = { ... }
- Parameters:
value
- The bytes for environment to set.- Returns:
- This builder for chaining.
-
getTestCasesList
public com.google.protobuf.ProtocolStringList getTestCasesList()
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getTestCasesList
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- A list containing the testCases.
-
getTestCasesCount
public int getTestCasesCount()
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getTestCasesCount
in interfaceBatchRunTestCasesRequestOrBuilder
- Returns:
- The count of testCases.
-
getTestCases
public String getTestCases(int index)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getTestCases
in interfaceBatchRunTestCasesRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The testCases at the given index.
-
getTestCasesBytes
public com.google.protobuf.ByteString getTestCasesBytes(int index)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getTestCasesBytes
in interfaceBatchRunTestCasesRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the testCases at the given index.
-
setTestCases
public BatchRunTestCasesRequest.Builder setTestCases(int index, String value)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
index
- The index to set the value at.value
- The testCases to set.- Returns:
- This builder for chaining.
-
addTestCases
public BatchRunTestCasesRequest.Builder addTestCases(String value)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The testCases to add.- Returns:
- This builder for chaining.
-
addAllTestCases
public BatchRunTestCasesRequest.Builder addAllTestCases(Iterable<String> values)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
values
- The testCases to add.- Returns:
- This builder for chaining.
-
clearTestCases
public BatchRunTestCasesRequest.Builder clearTestCases()
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
addTestCasesBytes
public BatchRunTestCasesRequest.Builder addTestCasesBytes(com.google.protobuf.ByteString value)
Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
repeated string test_cases = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes of the testCases to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchRunTestCasesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
mergeUnknownFields
public final BatchRunTestCasesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchRunTestCasesRequest.Builder>
-
-