Class ExportTestCasesRequest.Builder (0.52.0)

public static final class ExportTestCasesRequest.Builder extends GeneratedMessageV3.Builder<ExportTestCasesRequest.Builder> implements ExportTestCasesRequestOrBuilder

The request message for TestCases.ExportTestCases.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportTestCasesRequest build()
Returns
TypeDescription
ExportTestCasesRequest

buildPartial()

public ExportTestCasesRequest buildPartial()
Returns
TypeDescription
ExportTestCasesRequest

clear()

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

clearDataFormat()

public ExportTestCasesRequest.Builder clearDataFormat()

The data format of the exported test cases. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

clearDestination()

public ExportTestCasesRequest.Builder clearDestination()
Returns
TypeDescription
ExportTestCasesRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public ExportTestCasesRequest.Builder clearFilter()

The filter expression used to filter exported test cases, see API Filtering. The expression is case insensitive and supports the following syntax:

name = <value> [OR name = <value>] ...

For example:

  • "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2".

string filter = 4;

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

clearGcsUri()

public ExportTestCasesRequest.Builder clearGcsUri()

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ExportTestCasesRequest.Builder clearParent()

Required. The agent where to export test cases from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

clone()

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

getDataFormat()

public ExportTestCasesRequest.DataFormat getDataFormat()

The data format of the exported test cases. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
TypeDescription
ExportTestCasesRequest.DataFormat

The dataFormat.

getDataFormatValue()

public int getDataFormatValue()

The data format of the exported test cases. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportTestCasesRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportTestCasesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportTestCasesRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
ExportTestCasesRequest.DestinationCase

getFilter()

public String getFilter()

The filter expression used to filter exported test cases, see API Filtering. The expression is case insensitive and supports the following syntax:

name = <value> [OR name = <value>] ...

For example:

  • "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2".

string filter = 4;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

The filter expression used to filter exported test cases, see API Filtering. The expression is case insensitive and supports the following syntax:

name = <value> [OR name = <value>] ...

For example:

  • "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2".

string filter = 4;

Returns
TypeDescription
ByteString

The bytes for filter.

getGcsUri()

public String getGcsUri()

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Returns
TypeDescription
String

The gcsUri.

getGcsUriBytes()

public ByteString getGcsUriBytes()

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Returns
TypeDescription
ByteString

The bytes for gcsUri.

getParent()

public String getParent()

Required. The agent where to export test cases from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 where to export test cases from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasGcsUri()

public boolean hasGcsUri()

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Returns
TypeDescription
boolean

Whether the gcsUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportTestCasesRequest other)

public ExportTestCasesRequest.Builder mergeFrom(ExportTestCasesRequest other)
Parameter
NameDescription
otherExportTestCasesRequest
Returns
TypeDescription
ExportTestCasesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataFormat(ExportTestCasesRequest.DataFormat value)

public ExportTestCasesRequest.Builder setDataFormat(ExportTestCasesRequest.DataFormat value)

The data format of the exported test cases. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat data_format = 3;

Parameter
NameDescription
valueExportTestCasesRequest.DataFormat

The dataFormat to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setDataFormatValue(int value)

public ExportTestCasesRequest.Builder setDataFormatValue(int value)

The data format of the exported test cases. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat data_format = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for dataFormat to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ExportTestCasesRequest.Builder setFilter(String value)

The filter expression used to filter exported test cases, see API Filtering. The expression is case insensitive and supports the following syntax:

name = <value> [OR name = <value>] ...

For example:

  • "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2".

string filter = 4;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ExportTestCasesRequest.Builder setFilterBytes(ByteString value)

The filter expression used to filter exported test cases, see API Filtering. The expression is case insensitive and supports the following syntax:

name = <value> [OR name = <value>] ...

For example:

  • "name = t1 OR name = t2" matches the test case with the exact resource name "t1" or "t2".

string filter = 4;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setGcsUri(String value)

public ExportTestCasesRequest.Builder setGcsUri(String value)

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Parameter
NameDescription
valueString

The gcsUri to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setGcsUriBytes(ByteString value)

public ExportTestCasesRequest.Builder setGcsUriBytes(ByteString value)

The Google Cloud Storage URI to export the test cases to. The format of this URI must be gs://<bucket-name>/<object-name>. If unspecified, the serialized test cases is returned inline.

Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Parameter
NameDescription
valueByteString

The bytes for gcsUri to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setParent(String value)

public ExportTestCasesRequest.Builder setParent(String value)

Required. The agent where to export test cases from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportTestCasesRequest.Builder setParentBytes(ByteString value)

Required. The agent where to export test cases from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ExportTestCasesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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