Enum ImportStrategy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ImportStrategy>
@Generated
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.v3beta1.ImportStrategy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate a new resource with a numeric suffix appended to the end of the existing display name.Keep existing resource and discard incoming resource in the content to be imported.Combine existing and incoming resources when a conflict is encountered.Replace existing resource with incoming resource in the content to be imported.Throw error if a conflict is encountered.Unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCreate a new resource with a numeric suffix appended to the end of the existing display name.static final intKeep existing resource and discard incoming resource in the content to be imported.static final intCombine existing and incoming resources when a conflict is encountered.static final intReplace existing resource with incoming resource in the content to be imported.static final intThrow error if a conflict is encountered.static final intUnspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportStrategyforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ImportStrategy>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 ImportStrategyReturns 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 Details
-
IMPORT_STRATEGY_UNSPECIFIED
Unspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0; -
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
Replace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2; -
IMPORT_STRATEGY_KEEP
Keep existing resource and discard incoming resource in the content to be imported.
IMPORT_STRATEGY_KEEP = 3; -
IMPORT_STRATEGY_MERGE
Combine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4; -
IMPORT_STRATEGY_THROW_ERROR
Throw error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5; -
UNRECOGNIZED
-
-
Field Details
-
IMPORT_STRATEGY_UNSPECIFIED_VALUE
public static final int IMPORT_STRATEGY_UNSPECIFIED_VALUEUnspecified. Treated as 'CREATE_NEW'.
IMPORT_STRATEGY_UNSPECIFIED = 0;- See Also:
-
IMPORT_STRATEGY_CREATE_NEW_VALUE
public static final int IMPORT_STRATEGY_CREATE_NEW_VALUECreate a new resource with a numeric suffix appended to the end of the existing display name.
IMPORT_STRATEGY_CREATE_NEW = 1;- See Also:
-
IMPORT_STRATEGY_REPLACE_VALUE
public static final int IMPORT_STRATEGY_REPLACE_VALUEReplace existing resource with incoming resource in the content to be imported.
IMPORT_STRATEGY_REPLACE = 2;- See Also:
-
IMPORT_STRATEGY_KEEP_VALUE
public static final int IMPORT_STRATEGY_KEEP_VALUEKeep existing resource and discard incoming resource in the content to be imported.
IMPORT_STRATEGY_KEEP = 3;- See Also:
-
IMPORT_STRATEGY_MERGE_VALUE
public static final int IMPORT_STRATEGY_MERGE_VALUECombine existing and incoming resources when a conflict is encountered.
IMPORT_STRATEGY_MERGE = 4;- See Also:
-
IMPORT_STRATEGY_THROW_ERROR_VALUE
public static final int IMPORT_STRATEGY_THROW_ERROR_VALUEThrow error if a conflict is encountered.
IMPORT_STRATEGY_THROW_ERROR = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-