Class ExportTestCasesRequest.Builder (0.66.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.v3.ExportTestCasesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportTestCasesRequest build()
Returns
Type Description
ExportTestCasesRequest

buildPartial()

public ExportTestCasesRequest buildPartial()
Returns
Type Description
ExportTestCasesRequest

clear()

public ExportTestCasesRequest.Builder clear()
Returns
Type Description
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.v3.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
Type Description
ExportTestCasesRequest.Builder

This builder for chaining.

clearDestination()

public ExportTestCasesRequest.Builder clearDestination()
Returns
Type Description
ExportTestCasesRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ExportTestCasesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ExportTestCasesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ExportTestCasesRequest.Builder clearParent()

Required. The agent where to export test cases from. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
ExportTestCasesRequest.Builder

This builder for chaining.

clone()

public ExportTestCasesRequest.Builder clone()
Returns
Type Description
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.v3.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
Type Description
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.v3.ExportTestCasesRequest.DataFormat data_format = 3;

Returns
Type Description
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportTestCasesRequest getDefaultInstanceForType()
Returns
Type Description
ExportTestCasesRequest

getDescriptorForType()

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

getDestinationCase()

public ExportTestCasesRequest.DestinationCase getDestinationCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for gcsUri.

getParent()

public String getParent()

Required. The agent where to export test cases from. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent where to export test cases from. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
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
Type Description
boolean

Whether the gcsUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportTestCasesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportTestCasesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v3.ExportTestCasesRequest.DataFormat data_format = 3;

Parameter
Name Description
value ExportTestCasesRequest.DataFormat

The dataFormat to set.

Returns
Type Description
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.v3.ExportTestCasesRequest.DataFormat data_format = 3;

Parameter
Name Description
value int

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

Returns
Type Description
ExportTestCasesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExportTestCasesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The filter to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
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
Name Description
value String

The gcsUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for gcsUri to set.

Returns
Type Description
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExportTestCasesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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