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>

@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 Details

    • 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 Details

    • IMPORT_STRATEGY_UNSPECIFIED_VALUE

      public static final int IMPORT_STRATEGY_UNSPECIFIED_VALUE
       Unspecified. Treated as 'CREATE_NEW'.
       
      IMPORT_STRATEGY_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static ImportStrategy[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static 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 name
      NullPointerException - if the argument is null