Class ImportTestCasesResponse.Builder (0.14.1)

public static final class ImportTestCasesResponse.Builder extends GeneratedMessageV3.Builder<ImportTestCasesResponse.Builder> implements ImportTestCasesResponseOrBuilder

The response message for TestCases.ImportTestCases.

Protobuf type google.cloud.dialogflow.cx.v3.ImportTestCasesResponse

Static Methods

getDescriptor()

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

Methods

addAllNames(Iterable<String> values)

public ImportTestCasesResponse.Builder addAllNames(Iterable<String> values)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The names to add.

Returns
TypeDescription
ImportTestCasesResponse.Builder

This builder for chaining.

addNames(String value)

public ImportTestCasesResponse.Builder addNames(String value)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The names to add.

Returns
TypeDescription
ImportTestCasesResponse.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public ImportTestCasesResponse.Builder addNamesBytes(ByteString value)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the names to add.

Returns
TypeDescription
ImportTestCasesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportTestCasesResponse build()
Returns
TypeDescription
ImportTestCasesResponse

buildPartial()

public ImportTestCasesResponse buildPartial()
Returns
TypeDescription
ImportTestCasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNames()

public ImportTestCasesResponse.Builder clearNames()

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ImportTestCasesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ImportTestCasesResponse getDefaultInstanceForType()
Returns
TypeDescription
ImportTestCasesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNames(int index)

public String getNames(int index)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The names at the given index.

getNamesBytes(int index)

public ByteString getNamesBytes(int index)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the names at the given index.

getNamesCount()

public int getNamesCount()

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of names.

getNamesList()

public ProtocolStringList getNamesList()

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the names.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportTestCasesResponse other)

public ImportTestCasesResponse.Builder mergeFrom(ImportTestCasesResponse other)
Parameter
NameDescription
otherImportTestCasesResponse
Returns
TypeDescription
ImportTestCasesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNames(int index, String value)

public ImportTestCasesResponse.Builder setNames(int index, String value)

The unique identifiers of the new test cases. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase ID>.

repeated string names = 1 [(.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The names to set.

Returns
TypeDescription
ImportTestCasesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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