Class PlaybookImportStrategy.Builder (0.94.0)

public static final class PlaybookImportStrategy.Builder extends GeneratedMessage.Builder<PlaybookImportStrategy.Builder> implements PlaybookImportStrategyOrBuilder

The playbook import strategy used for resource conflict resolution associated with an ImportPlaybookRequest.

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

Static Methods

getDescriptor()

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

Methods

build()

public PlaybookImportStrategy build()
Returns
Type Description
PlaybookImportStrategy

buildPartial()

public PlaybookImportStrategy buildPartial()
Returns
Type Description
PlaybookImportStrategy

clear()

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

clearMainPlaybookImportStrategy()

public PlaybookImportStrategy.Builder clearMainPlaybookImportStrategy()

Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

clearNestedResourceImportStrategy()

public PlaybookImportStrategy.Builder clearNestedResourceImportStrategy()

Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

clearToolImportStrategy()

public PlaybookImportStrategy.Builder clearToolImportStrategy()

Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.

.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

getDefaultInstanceForType()

public PlaybookImportStrategy getDefaultInstanceForType()
Returns
Type Description
PlaybookImportStrategy

getDescriptorForType()

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

getMainPlaybookImportStrategy()

public ImportStrategy getMainPlaybookImportStrategy()

Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportStrategy

The mainPlaybookImportStrategy.

getMainPlaybookImportStrategyValue()

public int getMainPlaybookImportStrategyValue()

Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mainPlaybookImportStrategy.

getNestedResourceImportStrategy()

public ImportStrategy getNestedResourceImportStrategy()

Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportStrategy

The nestedResourceImportStrategy.

getNestedResourceImportStrategyValue()

public int getNestedResourceImportStrategyValue()

Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for nestedResourceImportStrategy.

getToolImportStrategy()

public ImportStrategy getToolImportStrategy()

Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.

.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportStrategy

The toolImportStrategy.

getToolImportStrategyValue()

public int getToolImportStrategyValue()

Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.

.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for toolImportStrategy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PlaybookImportStrategy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMainPlaybookImportStrategy(ImportStrategy value)

public PlaybookImportStrategy.Builder setMainPlaybookImportStrategy(ImportStrategy value)

Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ImportStrategy

The mainPlaybookImportStrategy to set.

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

setMainPlaybookImportStrategyValue(int value)

public PlaybookImportStrategy.Builder setMainPlaybookImportStrategyValue(int value)

Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

setNestedResourceImportStrategy(ImportStrategy value)

public PlaybookImportStrategy.Builder setNestedResourceImportStrategy(ImportStrategy value)

Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ImportStrategy

The nestedResourceImportStrategy to set.

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

setNestedResourceImportStrategyValue(int value)

public PlaybookImportStrategy.Builder setNestedResourceImportStrategyValue(int value)

Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.

.google.cloud.dialogflow.cx.v3.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

setToolImportStrategy(ImportStrategy value)

public PlaybookImportStrategy.Builder setToolImportStrategy(ImportStrategy value)

Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.

.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ImportStrategy

The toolImportStrategy to set.

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.

setToolImportStrategyValue(int value)

public PlaybookImportStrategy.Builder setToolImportStrategyValue(int value)

Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.

.google.cloud.dialogflow.cx.v3.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
PlaybookImportStrategy.Builder

This builder for chaining.