Class ImportIntentsResponse.Builder (0.52.0)

public static final class ImportIntentsResponse.Builder extends GeneratedMessageV3.Builder<ImportIntentsResponse.Builder> implements ImportIntentsResponseOrBuilder

The response message for Intents.ImportIntents.

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

Static Methods

getDescriptor()

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

Methods

addAllIntents(Iterable<String> values)

public ImportIntentsResponse.Builder addAllIntents(Iterable<String> values)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valuesIterable<String>

The intents to add.

Returns
TypeDescription
ImportIntentsResponse.Builder

This builder for chaining.

addIntents(String value)

public ImportIntentsResponse.Builder addIntents(String value)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueString

The intents to add.

Returns
TypeDescription
ImportIntentsResponse.Builder

This builder for chaining.

addIntentsBytes(ByteString value)

public ImportIntentsResponse.Builder addIntentsBytes(ByteString value)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueByteString

The bytes of the intents to add.

Returns
TypeDescription
ImportIntentsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportIntentsResponse build()
Returns
TypeDescription
ImportIntentsResponse

buildPartial()

public ImportIntentsResponse buildPartial()
Returns
TypeDescription
ImportIntentsResponse

clear()

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

clearConflictingResources()

public ImportIntentsResponse.Builder clearConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
TypeDescription
ImportIntentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public ImportIntentsResponse.Builder clearIntents()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
ImportIntentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConflictingResources()

public ImportIntentsResponse.ConflictingResources getConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
TypeDescription
ImportIntentsResponse.ConflictingResources

The conflictingResources.

getConflictingResourcesBuilder()

public ImportIntentsResponse.ConflictingResources.Builder getConflictingResourcesBuilder()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
TypeDescription
ImportIntentsResponse.ConflictingResources.Builder

getConflictingResourcesOrBuilder()

public ImportIntentsResponse.ConflictingResourcesOrBuilder getConflictingResourcesOrBuilder()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
TypeDescription
ImportIntentsResponse.ConflictingResourcesOrBuilder

getDefaultInstanceForType()

public ImportIntentsResponse getDefaultInstanceForType()
Returns
TypeDescription
ImportIntentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntents(int index)

public String getIntents(int index)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The intents at the given index.

getIntentsBytes(int index)

public ByteString getIntentsBytes(int index)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the intents at the given index.

getIntentsCount()

public int getIntentsCount()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
int

The count of intents.

getIntentsList()

public ProtocolStringList getIntentsList()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
ProtocolStringList

A list containing the intents.

hasConflictingResources()

public boolean hasConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
TypeDescription
boolean

Whether the conflictingResources field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConflictingResources(ImportIntentsResponse.ConflictingResources value)

public ImportIntentsResponse.Builder mergeConflictingResources(ImportIntentsResponse.ConflictingResources value)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
NameDescription
valueImportIntentsResponse.ConflictingResources
Returns
TypeDescription
ImportIntentsResponse.Builder

mergeFrom(ImportIntentsResponse other)

public ImportIntentsResponse.Builder mergeFrom(ImportIntentsResponse other)
Parameter
NameDescription
otherImportIntentsResponse
Returns
TypeDescription
ImportIntentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConflictingResources(ImportIntentsResponse.ConflictingResources value)

public ImportIntentsResponse.Builder setConflictingResources(ImportIntentsResponse.ConflictingResources value)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
NameDescription
valueImportIntentsResponse.ConflictingResources
Returns
TypeDescription
ImportIntentsResponse.Builder

setConflictingResources(ImportIntentsResponse.ConflictingResources.Builder builderForValue)

public ImportIntentsResponse.Builder setConflictingResources(ImportIntentsResponse.ConflictingResources.Builder builderForValue)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
NameDescription
builderForValueImportIntentsResponse.ConflictingResources.Builder
Returns
TypeDescription
ImportIntentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntents(int index, String value)

public ImportIntentsResponse.Builder setIntents(int index, String value)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The intents to set.

Returns
TypeDescription
ImportIntentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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