Enum google_api_proto::google::cloud::aiplatform::v1::nearest_neighbor_search_operation_metadata::record_error::RecordErrorType
source · #[repr(i32)]pub enum RecordErrorType {
Show 15 variants
ErrorTypeUnspecified = 0,
EmptyLine = 1,
InvalidJsonSyntax = 2,
InvalidCsvSyntax = 3,
InvalidAvroSyntax = 4,
InvalidEmbeddingId = 5,
EmbeddingSizeMismatch = 6,
NamespaceMissing = 7,
ParsingError = 8,
DuplicateNamespace = 9,
OpInDatapoint = 10,
MultipleValues = 11,
InvalidNumericValue = 12,
InvalidEncoding = 13,
InvalidTokenValue = 15,
}
Variants§
ErrorTypeUnspecified = 0
Default, shall not be used.
EmptyLine = 1
The record is empty.
InvalidJsonSyntax = 2
Invalid json format.
InvalidCsvSyntax = 3
Invalid csv format.
InvalidAvroSyntax = 4
Invalid avro format.
InvalidEmbeddingId = 5
The embedding id is not valid.
EmbeddingSizeMismatch = 6
The size of the embedding vectors does not match with the specified dimension.
NamespaceMissing = 7
The namespace
field is missing.
ParsingError = 8
Generic catch-all error. Only used for validation failure where the root cause cannot be easily retrieved programmatically.
DuplicateNamespace = 9
There are multiple restricts with the same namespace
value.
OpInDatapoint = 10
Numeric restrict has operator specified in datapoint.
MultipleValues = 11
Numeric restrict has multiple values specified.
InvalidNumericValue = 12
Numeric restrict has invalid numeric value specified.
InvalidEncoding = 13
File is not in UTF_8 format.
InvalidTokenValue = 15
Token restrict value is invalid.
Implementations§
source§impl RecordErrorType
impl RecordErrorType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RecordErrorType
impl Clone for RecordErrorType
source§fn clone(&self) -> RecordErrorType
fn clone(&self) -> RecordErrorType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecordErrorType
impl Debug for RecordErrorType
source§impl Default for RecordErrorType
impl Default for RecordErrorType
source§fn default() -> RecordErrorType
fn default() -> RecordErrorType
source§impl From<RecordErrorType> for i32
impl From<RecordErrorType> for i32
source§fn from(value: RecordErrorType) -> i32
fn from(value: RecordErrorType) -> i32
source§impl Hash for RecordErrorType
impl Hash for RecordErrorType
source§impl Ord for RecordErrorType
impl Ord for RecordErrorType
source§fn cmp(&self, other: &RecordErrorType) -> Ordering
fn cmp(&self, other: &RecordErrorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RecordErrorType
impl PartialEq for RecordErrorType
source§fn eq(&self, other: &RecordErrorType) -> bool
fn eq(&self, other: &RecordErrorType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RecordErrorType
impl PartialOrd for RecordErrorType
source§fn partial_cmp(&self, other: &RecordErrorType) -> Option<Ordering>
fn partial_cmp(&self, other: &RecordErrorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RecordErrorType
impl TryFrom<i32> for RecordErrorType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<RecordErrorType, DecodeError>
fn try_from(value: i32) -> Result<RecordErrorType, DecodeError>
impl Copy for RecordErrorType
impl Eq for RecordErrorType
impl StructuralPartialEq for RecordErrorType
Auto Trait Implementations§
impl Freeze for RecordErrorType
impl RefUnwindSafe for RecordErrorType
impl Send for RecordErrorType
impl Sync for RecordErrorType
impl Unpin for RecordErrorType
impl UnwindSafe for RecordErrorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request