Class: Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/index_service.rb

Overview

Runtime operation metadata with regard to Matching Engine Index.

Defined Under Namespace

Classes: ContentValidationStats, RecordError

Instance Attribute Summary collapse

Instance Attribute Details

#content_validation_stats::Array<::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::ContentValidationStats>

Returns The validation stats of the content (per file) to be inserted or updated on the Matching Engine Index resource. Populated if contentsDeltaUri is provided as part of Index.metadata. Please note that, currently for those files that are broken or has unsupported file format, we will not have the stats for those files.

Returns:



212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'proto_docs/google/cloud/aiplatform/v1/index_service.rb', line 212

class NearestNeighborSearchOperationMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] error_type
  #   @return [::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::RecordError::RecordErrorType]
  #     The error type of this record.
  # @!attribute [rw] error_message
  #   @return [::String]
  #     A human-readable message that is shown to the user to help them fix the
  #     error. Note that this message may change from time to time, your code
  #     should check against error_type as the source of truth.
  # @!attribute [rw] source_gcs_uri
  #   @return [::String]
  #     Cloud Storage URI pointing to the original file in user's bucket.
  # @!attribute [rw] embedding_id
  #   @return [::String]
  #     Empty if the embedding id is failed to parse.
  # @!attribute [rw] raw_record
  #   @return [::String]
  #     The original content of this record.
  class RecordError
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    module RecordErrorType
      # Default, shall not be used.
      ERROR_TYPE_UNSPECIFIED = 0

      # The record is empty.
      EMPTY_LINE = 1

      # Invalid json format.
      INVALID_JSON_SYNTAX = 2

      # Invalid csv format.
      INVALID_CSV_SYNTAX = 3

      # Invalid avro format.
      INVALID_AVRO_SYNTAX = 4

      # The embedding id is not valid.
      INVALID_EMBEDDING_ID = 5

      # The size of the dense embedding vectors does not match with the
      # specified dimension.
      EMBEDDING_SIZE_MISMATCH = 6

      # The `namespace` field is missing.
      NAMESPACE_MISSING = 7

      # Generic catch-all error. Only used for validation failure where the
      # root cause cannot be easily retrieved programmatically.
      PARSING_ERROR = 8

      # There are multiple restricts with the same `namespace` value.
      DUPLICATE_NAMESPACE = 9

      # Numeric restrict has operator specified in datapoint.
      OP_IN_DATAPOINT = 10

      # Numeric restrict has multiple values specified.
      MULTIPLE_VALUES = 11

      # Numeric restrict has invalid numeric value specified.
      INVALID_NUMERIC_VALUE = 12

      # File is not in UTF_8 format.
      INVALID_ENCODING = 13

      # Error parsing sparse dimensions field.
      INVALID_SPARSE_DIMENSIONS = 14

      # Token restrict value is invalid.
      INVALID_TOKEN_VALUE = 15

      # Invalid sparse embedding.
      INVALID_SPARSE_EMBEDDING = 16

      # Invalid dense embedding.
      INVALID_EMBEDDING = 17
    end
  end

  # @!attribute [rw] source_gcs_uri
  #   @return [::String]
  #     Cloud Storage URI pointing to the original file in user's bucket.
  # @!attribute [rw] valid_record_count
  #   @return [::Integer]
  #     Number of records in this file that were successfully processed.
  # @!attribute [rw] invalid_record_count
  #   @return [::Integer]
  #     Number of records in this file we skipped due to validate errors.
  # @!attribute [rw] partial_errors
  #   @return [::Array<::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::RecordError>]
  #     The detail information of the partial failures encountered for those
  #     invalid records that couldn't be parsed.
  #     Up to 50 partial errors will be reported.
  # @!attribute [rw] valid_sparse_record_count
  #   @return [::Integer]
  #     Number of sparse records in this file that were successfully processed.
  # @!attribute [rw] invalid_sparse_record_count
  #   @return [::Integer]
  #     Number of sparse records in this file we skipped due to validate errors.
  class ContentValidationStats
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#data_bytes_count::Integer

Returns The ingested data size in bytes.

Returns:

  • (::Integer)

    The ingested data size in bytes.



212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'proto_docs/google/cloud/aiplatform/v1/index_service.rb', line 212

class NearestNeighborSearchOperationMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] error_type
  #   @return [::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::RecordError::RecordErrorType]
  #     The error type of this record.
  # @!attribute [rw] error_message
  #   @return [::String]
  #     A human-readable message that is shown to the user to help them fix the
  #     error. Note that this message may change from time to time, your code
  #     should check against error_type as the source of truth.
  # @!attribute [rw] source_gcs_uri
  #   @return [::String]
  #     Cloud Storage URI pointing to the original file in user's bucket.
  # @!attribute [rw] embedding_id
  #   @return [::String]
  #     Empty if the embedding id is failed to parse.
  # @!attribute [rw] raw_record
  #   @return [::String]
  #     The original content of this record.
  class RecordError
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    module RecordErrorType
      # Default, shall not be used.
      ERROR_TYPE_UNSPECIFIED = 0

      # The record is empty.
      EMPTY_LINE = 1

      # Invalid json format.
      INVALID_JSON_SYNTAX = 2

      # Invalid csv format.
      INVALID_CSV_SYNTAX = 3

      # Invalid avro format.
      INVALID_AVRO_SYNTAX = 4

      # The embedding id is not valid.
      INVALID_EMBEDDING_ID = 5

      # The size of the dense embedding vectors does not match with the
      # specified dimension.
      EMBEDDING_SIZE_MISMATCH = 6

      # The `namespace` field is missing.
      NAMESPACE_MISSING = 7

      # Generic catch-all error. Only used for validation failure where the
      # root cause cannot be easily retrieved programmatically.
      PARSING_ERROR = 8

      # There are multiple restricts with the same `namespace` value.
      DUPLICATE_NAMESPACE = 9

      # Numeric restrict has operator specified in datapoint.
      OP_IN_DATAPOINT = 10

      # Numeric restrict has multiple values specified.
      MULTIPLE_VALUES = 11

      # Numeric restrict has invalid numeric value specified.
      INVALID_NUMERIC_VALUE = 12

      # File is not in UTF_8 format.
      INVALID_ENCODING = 13

      # Error parsing sparse dimensions field.
      INVALID_SPARSE_DIMENSIONS = 14

      # Token restrict value is invalid.
      INVALID_TOKEN_VALUE = 15

      # Invalid sparse embedding.
      INVALID_SPARSE_EMBEDDING = 16

      # Invalid dense embedding.
      INVALID_EMBEDDING = 17
    end
  end

  # @!attribute [rw] source_gcs_uri
  #   @return [::String]
  #     Cloud Storage URI pointing to the original file in user's bucket.
  # @!attribute [rw] valid_record_count
  #   @return [::Integer]
  #     Number of records in this file that were successfully processed.
  # @!attribute [rw] invalid_record_count
  #   @return [::Integer]
  #     Number of records in this file we skipped due to validate errors.
  # @!attribute [rw] partial_errors
  #   @return [::Array<::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::RecordError>]
  #     The detail information of the partial failures encountered for those
  #     invalid records that couldn't be parsed.
  #     Up to 50 partial errors will be reported.
  # @!attribute [rw] valid_sparse_record_count
  #   @return [::Integer]
  #     Number of sparse records in this file that were successfully processed.
  # @!attribute [rw] invalid_sparse_record_count
  #   @return [::Integer]
  #     Number of sparse records in this file we skipped due to validate errors.
  class ContentValidationStats
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end