Enum ImportStrategy
- java.lang.Object
-
- java.lang.Enum<ImportStrategy>
-
- com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ImportStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMPORT_STRATEGY_CREATE_NEWCreate a new resource with a numeric suffix appended to the end of the existing display name.IMPORT_STRATEGY_KEEPKeep existing resource and discard incoming resource in the content to be imported.IMPORT_STRATEGY_MERGECombine existing and incoming resources when a conflict is encountered.IMPORT_STRATEGY_REPLACEReplace existing resource with incoming resource in the content to be imported.IMPORT_STRATEGY_THROW_ERRORThrow error if a conflict is encountered.IMPORT_STRATEGY_UNSPECIFIEDUnspecified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intIMPORT_STRATEGY_CREATE_NEW_VALUECreate a new resource with a numeric suffix appended to the end of the existing display name.static intIMPORT_STRATEGY_KEEP_VALUEKeep existing resource and discard incoming resource in the content to be imported.static intIMPORT_STRATEGY_MERGE_VALUECombine existing and incoming resources when a conflict is encountered.static intIMPORT_STRATEGY_REPLACE_VALUEReplace existing resource with incoming resource in the content to be imported.static intIMPORT_STRATEGY_THROW_ERROR_VALUEThrow error if a conflict is encountered.static intIMPORT_STRATEGY_UNSPECIFIED_VALUEUnspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ImportStrategyforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ImportStrategy>internalGetValueMap()static ImportStrategyvalueOf(int value)Deprecated.static ImportStrategyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ImportStrategyvalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-