Class: Google::Apis::LanguageV2::XpsFileSpec
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsFileSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Spec of input and output files, on external file systems (CNS, GCS, etc).
Instance Attribute Summary collapse
-
#directory_path ⇒ String
Deprecated.
-
#file_format ⇒ String
Corresponds to the JSON property
fileFormat
. -
#file_spec ⇒ String
Single file path, or file pattern of format "/path/to/file@shard_count".
-
#single_file_path ⇒ String
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsFileSpec
constructor
A new instance of XpsFileSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsFileSpec
Returns a new instance of XpsFileSpec.
2180 2181 2182 |
# File 'lib/google/apis/language_v2/classes.rb', line 2180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#directory_path ⇒ String
Deprecated. Use file_spec.
Corresponds to the JSON property directoryPath
2161 2162 2163 |
# File 'lib/google/apis/language_v2/classes.rb', line 2161 def directory_path @directory_path end |
#file_format ⇒ String
Corresponds to the JSON property fileFormat
2166 2167 2168 |
# File 'lib/google/apis/language_v2/classes.rb', line 2166 def file_format @file_format end |
#file_spec ⇒ String
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
2173 2174 2175 |
# File 'lib/google/apis/language_v2/classes.rb', line 2173 def file_spec @file_spec end |
#single_file_path ⇒ String
Deprecated. Use file_spec.
Corresponds to the JSON property singleFilePath
2178 2179 2180 |
# File 'lib/google/apis/language_v2/classes.rb', line 2178 def single_file_path @single_file_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2185 2186 2187 2188 2189 2190 |
# File 'lib/google/apis/language_v2/classes.rb', line 2185 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 |