Class ImportTestCasesRequest.Builder (0.14.1)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportTestCasesRequest build()
Returns
TypeDescription
ImportTestCasesRequest

buildPartial()

public ImportTestCasesRequest buildPartial()
Returns
TypeDescription
ImportTestCasesRequest

clear()

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

clearContent()

public ImportTestCasesRequest.Builder clearContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
TypeDescription
ImportTestCasesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportTestCasesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ImportTestCasesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportTestCasesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ImportTestCasesRequest.Builder

This builder for chaining.

clearSource()

public ImportTestCasesRequest.Builder clearSource()
Returns
TypeDescription
ImportTestCasesRequest.Builder

clone()

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

getContent()

public ByteString getContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
TypeDescription
ByteString

The content.

getDefaultInstanceForType()

public ImportTestCasesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportTestCasesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public ImportTestCasesRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportTestCasesRequest.SourceCase

hasContent()

public boolean hasContent()

Uncompressed raw byte content for test cases.

bytes content = 3;

Returns
TypeDescription
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
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(ImportTestCasesRequest other)

public ImportTestCasesRequest.Builder mergeFrom(ImportTestCasesRequest other)
Parameter
NameDescription
otherImportTestCasesRequest
Returns
TypeDescription
ImportTestCasesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContent(ByteString value)

public ImportTestCasesRequest.Builder setContent(ByteString value)

Uncompressed raw byte content for test cases.

bytes content = 3;

Parameter
NameDescription
valueByteString

The content to set.

Returns
TypeDescription
ImportTestCasesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportTestCasesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gcsUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcsUri to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportTestCasesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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