Class ImportTestCasesRequest.Builder (0.22.0)

public static final class ImportTestCasesRequest.Builder extends GeneratedMessageV3.Builder<ImportTestCasesRequest.Builder> implements ImportTestCasesRequestOrBuilder

The request message for TestCases.ImportTestCases.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportTestCasesRequest build()
Returns
Type Description
ImportTestCasesRequest

buildPartial()

public ImportTestCasesRequest buildPartial()
Returns
Type Description
ImportTestCasesRequest

clear()

public ImportTestCasesRequest.Builder clear()
Returns
Type Description
ImportTestCasesRequest.Builder
Overrides

clearContent()

public ImportTestCasesRequest.Builder clearContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
Type Description
ImportTestCasesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportTestCasesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportTestCasesRequest.Builder
Overrides

clearGcsUri()

public ImportTestCasesRequest.Builder clearGcsUri()

The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string gcs_uri = 2;

Returns
Type Description
ImportTestCasesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportTestCasesRequest.Builder clearParent()

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

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

Returns
Type Description
ImportTestCasesRequest.Builder

This builder for chaining.

clearSource()

public ImportTestCasesRequest.Builder clearSource()
Returns
Type Description
ImportTestCasesRequest.Builder

clone()

public ImportTestCasesRequest.Builder clone()
Returns
Type Description
ImportTestCasesRequest.Builder
Overrides

getContent()

public ByteString getContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
Type Description
ByteString

The content.

getDefaultInstanceForType()

public ImportTestCasesRequest getDefaultInstanceForType()
Returns
Type Description
ImportTestCasesRequest

getDescriptorForType()

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

getGcsUri()

public String getGcsUri()

The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read 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 import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read 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 to import test cases to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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 to import test cases to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportTestCasesRequest.SourceCase getSourceCase()
Returns
Type Description
ImportTestCasesRequest.SourceCase

hasContent()

public boolean hasContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
Type Description
boolean

Whether the content field is set.

hasGcsUri()

public boolean hasGcsUri()

The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read 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(ImportTestCasesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportTestCasesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportTestCasesRequest.Builder
Overrides

setContent(ByteString value)

public ImportTestCasesRequest.Builder setContent(ByteString value)

Uncompressed raw byte content for test cases.

bytes content = 3;

Parameter
Name Description
value ByteString

The content to set.

Returns
Type Description
ImportTestCasesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsUri(String value)

public ImportTestCasesRequest.Builder setGcsUri(String value)

The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read 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
ImportTestCasesRequest.Builder

This builder for chaining.

setGcsUriBytes(ByteString value)

public ImportTestCasesRequest.Builder setGcsUriBytes(ByteString value)

The Google Cloud Storage URI to import test cases from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read 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
ImportTestCasesRequest.Builder

This builder for chaining.

setParent(String value)

public ImportTestCasesRequest.Builder setParent(String value)

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

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportTestCasesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportTestCasesRequest.Builder setParentBytes(ByteString value)

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

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
ImportTestCasesRequest.Builder

This builder for chaining.

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

public ImportTestCasesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportTestCasesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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