Enum FileSource

java.lang.Object
java.lang.Enum<FileSource>
com.google.cloud.discoveryengine.v1alpha.FileSource
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<FileSource>

@Generated public enum FileSource extends Enum<FileSource> implements com.google.protobuf.ProtocolMessageEnum
 Original source of the file.
 
Protobuf enum google.cloud.discoveryengine.v1alpha.FileSource
  • Enum Constant Details

    • FILE_SOURCE_UNSPECIFIED

      public static final FileSource FILE_SOURCE_UNSPECIFIED
       Default value. Unknown source.
       
      FILE_SOURCE_UNSPECIFIED = 0;
    • FILE_SOURCE_INLINE

      public static final FileSource FILE_SOURCE_INLINE
       The data of the file was provided inline (e.g. pasted from the clipboard).
       
      FILE_SOURCE_INLINE = 1;
    • FILE_SOURCE_LOCAL

      public static final FileSource FILE_SOURCE_LOCAL
       The file was uploaded from a local file.
       
      FILE_SOURCE_LOCAL = 2;
    • FILE_SOURCE_CLOUD_STORAGE

      public static final FileSource FILE_SOURCE_CLOUD_STORAGE
       The file was uploaded from Cloud Storage.
       
      FILE_SOURCE_CLOUD_STORAGE = 3;
    • FILE_SOURCE_CLOUD_DRIVE

      public static final FileSource FILE_SOURCE_CLOUD_DRIVE
       The file was uploaded from Drive.
       
      FILE_SOURCE_CLOUD_DRIVE = 4;
    • FILE_SOURCE_URL

      public static final FileSource FILE_SOURCE_URL
       The file was retrieved from a URL (e.g. public web).
       
      FILE_SOURCE_URL = 5;
    • UNRECOGNIZED

      public static final FileSource UNRECOGNIZED
  • Field Details

    • FILE_SOURCE_UNSPECIFIED_VALUE

      public static final int FILE_SOURCE_UNSPECIFIED_VALUE
       Default value. Unknown source.
       
      FILE_SOURCE_UNSPECIFIED = 0;
      See Also:
    • FILE_SOURCE_INLINE_VALUE

      public static final int FILE_SOURCE_INLINE_VALUE
       The data of the file was provided inline (e.g. pasted from the clipboard).
       
      FILE_SOURCE_INLINE = 1;
      See Also:
    • FILE_SOURCE_LOCAL_VALUE

      public static final int FILE_SOURCE_LOCAL_VALUE
       The file was uploaded from a local file.
       
      FILE_SOURCE_LOCAL = 2;
      See Also:
    • FILE_SOURCE_CLOUD_STORAGE_VALUE

      public static final int FILE_SOURCE_CLOUD_STORAGE_VALUE
       The file was uploaded from Cloud Storage.
       
      FILE_SOURCE_CLOUD_STORAGE = 3;
      See Also:
    • FILE_SOURCE_CLOUD_DRIVE_VALUE

      public static final int FILE_SOURCE_CLOUD_DRIVE_VALUE
       The file was uploaded from Drive.
       
      FILE_SOURCE_CLOUD_DRIVE = 4;
      See Also:
    • FILE_SOURCE_URL_VALUE

      public static final int FILE_SOURCE_URL_VALUE
       The file was retrieved from a URL (e.g. public web).
       
      FILE_SOURCE_URL = 5;
      See Also:
  • Method Details

    • values

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