public enum ImportStrategy extends Enum<ImportStrategy> implements com.google.protobuf.ProtocolMessageEnum
Import strategies for the conflict resolution of resources (i.e. intents, entities, and webhooks) with identical display names during import operations.Protobuf enum
google.cloud.dialogflow.cx.v3.ImportStrategy| Enum Constant and Description |
|---|
IMPORT_STRATEGY_CREATE_NEW
Create a new resource with a numeric suffix appended to the end of the
existing display name.
|
IMPORT_STRATEGY_KEEP
Keep existing resource and discard incoming resource in the content to be
imported.
|
IMPORT_STRATEGY_MERGE
Combine existing and incoming resources when a conflict is encountered.
|
IMPORT_STRATEGY_REPLACE
Replace existing resource with incoming resource in the content to be
imported.
|
IMPORT_STRATEGY_THROW_ERROR
Throw error if a conflict is encountered.
|
IMPORT_STRATEGY_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
IMPORT_STRATEGY_CREATE_NEW_VALUE
Create a new resource with a numeric suffix appended to the end of the
existing display name.
|
static int |
IMPORT_STRATEGY_KEEP_VALUE
Keep existing resource and discard incoming resource in the content to be
imported.
|
static int |
IMPORT_STRATEGY_MERGE_VALUE
Combine existing and incoming resources when a conflict is encountered.
|
static int |
IMPORT_STRATEGY_REPLACE_VALUE
Replace existing resource with incoming resource in the content to be
imported.
|
static int |
IMPORT_STRATEGY_THROW_ERROR_VALUE
Throw error if a conflict is encountered.
|
static int |
IMPORT_STRATEGY_UNSPECIFIED_VALUE
Unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static ImportStrategy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ImportStrategy> |
internalGetValueMap() |
static ImportStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ImportStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ImportStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImportStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImportStrategy IMPORT_STRATEGY_UNSPECIFIED
Unspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0;public static final ImportStrategy IMPORT_STRATEGY_CREATE_NEW
Create a new resource with a numeric suffix appended to the end of the existing display name.
IMPORT_STRATEGY_CREATE_NEW = 1;public static final ImportStrategy IMPORT_STRATEGY_REPLACE
Replace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2;public static final ImportStrategy IMPORT_STRATEGY_KEEP
Keep existing resource and discard incoming resource in the content to be imported.
IMPORT_STRATEGY_KEEP = 3;public static final ImportStrategy IMPORT_STRATEGY_MERGE
Combine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4;public static final ImportStrategy IMPORT_STRATEGY_THROW_ERROR
Throw error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5;public static final ImportStrategy UNRECOGNIZED
public static final int IMPORT_STRATEGY_UNSPECIFIED_VALUE
Unspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0;public static final int IMPORT_STRATEGY_CREATE_NEW_VALUE
Create a new resource with a numeric suffix appended to the end of the existing display name.
IMPORT_STRATEGY_CREATE_NEW = 1;public static final int IMPORT_STRATEGY_REPLACE_VALUE
Replace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2;public static final int IMPORT_STRATEGY_KEEP_VALUE
Keep existing resource and discard incoming resource in the content to be imported.
IMPORT_STRATEGY_KEEP = 3;public static final int IMPORT_STRATEGY_MERGE_VALUE
Combine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4;public static final int IMPORT_STRATEGY_THROW_ERROR_VALUE
Throw error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5;public static ImportStrategy[] values()
for (ImportStrategy c : ImportStrategy.values()) System.out.println(c);
public static ImportStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ImportStrategy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ImportStrategy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ImportStrategy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ImportStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.