Enum ImportStrategy
- java.lang.Object
-
- java.lang.Enum<ImportStrategy>
-
- com.google.cloud.dialogflow.cx.v3.ImportStrategy
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ImportStrategy>
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 enumgoogle.cloud.dialogflow.cx.v3.ImportStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static ImportStrategy
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
IMPORT_STRATEGY_UNSPECIFIED
public static final ImportStrategy IMPORT_STRATEGY_UNSPECIFIED
Unspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0;
-
IMPORT_STRATEGY_CREATE_NEW
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;
-
IMPORT_STRATEGY_REPLACE
public static final ImportStrategy IMPORT_STRATEGY_REPLACE
Replace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2;
-
IMPORT_STRATEGY_KEEP
public static final ImportStrategy IMPORT_STRATEGY_KEEP
Keep existing resource and discard incoming resource in the content to be imported.
IMPORT_STRATEGY_KEEP = 3;
-
IMPORT_STRATEGY_MERGE
public static final ImportStrategy IMPORT_STRATEGY_MERGE
Combine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4;
-
IMPORT_STRATEGY_THROW_ERROR
public static final ImportStrategy IMPORT_STRATEGY_THROW_ERROR
Throw error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5;
-
UNRECOGNIZED
public static final ImportStrategy UNRECOGNIZED
-
-
Field Detail
-
IMPORT_STRATEGY_UNSPECIFIED_VALUE
public static final int IMPORT_STRATEGY_UNSPECIFIED_VALUE
Unspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
IMPORT_STRATEGY_CREATE_NEW_VALUE
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;
- See Also:
- Constant Field Values
-
IMPORT_STRATEGY_REPLACE_VALUE
public static final int IMPORT_STRATEGY_REPLACE_VALUE
Replace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2;
- See Also:
- Constant Field Values
-
IMPORT_STRATEGY_KEEP_VALUE
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;
- See Also:
- Constant Field Values
-
IMPORT_STRATEGY_MERGE_VALUE
public static final int IMPORT_STRATEGY_MERGE_VALUE
Combine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4;
- See Also:
- Constant Field Values
-
IMPORT_STRATEGY_THROW_ERROR_VALUE
public static final int IMPORT_STRATEGY_THROW_ERROR_VALUE
Throw error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ImportStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImportStrategy c : ImportStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImportStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ImportStrategy valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static ImportStrategy forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ImportStrategy> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ImportStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-