Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionThe file was uploaded from Drive.The file was uploaded from Cloud Storage.The data of the file was provided inline (e.g. pasted from the clipboard).The file was uploaded from a local file.Default value.The file was retrieved from a URL (e.g. public web). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe file was uploaded from Drive.static final intThe file was uploaded from Cloud Storage.static final intThe data of the file was provided inline (e.g. pasted from the clipboard).static final intThe file was uploaded from a local file.static final intDefault value.static final intThe file was retrieved from a URL (e.g. public web). -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSourceforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FileSource>static FileSourcevalueOf(int value) Deprecated.static FileSourcevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static FileSourceReturns the enum constant of this type with the specified name.static FileSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILE_SOURCE_UNSPECIFIED
Default value. Unknown source.
FILE_SOURCE_UNSPECIFIED = 0; -
FILE_SOURCE_INLINE
The data of the file was provided inline (e.g. pasted from the clipboard).
FILE_SOURCE_INLINE = 1; -
FILE_SOURCE_LOCAL
The file was uploaded from a local file.
FILE_SOURCE_LOCAL = 2; -
FILE_SOURCE_CLOUD_STORAGE
The file was uploaded from Cloud Storage.
FILE_SOURCE_CLOUD_STORAGE = 3; -
FILE_SOURCE_CLOUD_DRIVE
The file was uploaded from Drive.
FILE_SOURCE_CLOUD_DRIVE = 4; -
FILE_SOURCE_URL
The file was retrieved from a URL (e.g. public web).
FILE_SOURCE_URL = 5; -
UNRECOGNIZED
-
-
Field Details
-
FILE_SOURCE_UNSPECIFIED_VALUE
public static final int FILE_SOURCE_UNSPECIFIED_VALUEDefault value. Unknown source.
FILE_SOURCE_UNSPECIFIED = 0;- See Also:
-
FILE_SOURCE_INLINE_VALUE
public static final int FILE_SOURCE_INLINE_VALUEThe 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_VALUEThe 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_VALUEThe 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_VALUEThe file was uploaded from Drive.
FILE_SOURCE_CLOUD_DRIVE = 4;- See Also:
-
FILE_SOURCE_URL_VALUE
public static final int FILE_SOURCE_URL_VALUEThe file was retrieved from a URL (e.g. public web).
FILE_SOURCE_URL = 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
-