Class: Google::Apis::LanguageV1::XpsFileSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb

Overview

Spec of input and output files, on external file systems (CNS, GCS, etc).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsFileSpec

Returns a new instance of XpsFileSpec.



2466
2467
2468
# File 'lib/google/apis/language_v1/classes.rb', line 2466

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#directory_pathString

Deprecated. Use file_spec. Corresponds to the JSON property directoryPath

Returns:

  • (String)


2447
2448
2449
# File 'lib/google/apis/language_v1/classes.rb', line 2447

def directory_path
  @directory_path
end

#file_formatString

Corresponds to the JSON property fileFormat

Returns:

  • (String)


2452
2453
2454
# File 'lib/google/apis/language_v1/classes.rb', line 2452

def file_format
  @file_format
end

#file_specString

Single file path, or file pattern of format "/path/to/file@shard_count". E.g. / cns/cell-d/somewhere/file@2 is expanded to two files: /cns/cell-d/somewhere/ file-00000-of-00002 and /cns/cell-d/somewhere/file-00001-of-00002. Corresponds to the JSON property fileSpec

Returns:

  • (String)


2459
2460
2461
# File 'lib/google/apis/language_v1/classes.rb', line 2459

def file_spec
  @file_spec
end

#single_file_pathString

Deprecated. Use file_spec. Corresponds to the JSON property singleFilePath

Returns:

  • (String)


2464
2465
2466
# File 'lib/google/apis/language_v1/classes.rb', line 2464

def single_file_path
  @single_file_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2471
2472
2473
2474
2475
2476
# File 'lib/google/apis/language_v1/classes.rb', line 2471

def update!(**args)
  @directory_path = args[:directory_path] if args.key?(:directory_path)
  @file_format = args[:file_format] if args.key?(:file_format)
  @file_spec = args[:file_spec] if args.key?(:file_spec)
  @single_file_path = args[:single_file_path] if args.key?(:single_file_path)
end