Class: Evernote::EDAM::Type::Data
- Inherits:
-
Object
- Object
- Evernote::EDAM::Type::Data
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/Evernote/EDAM/types_types.rb
Overview
which may be relatively large. For example: the contents of a clipped
HTML note, the bytes of an embedded image, or the recognition XML for
a large image. This structure is used in the protocol to represent
any of those large blocks of data when they are transmitted or when
they are only referenced their metadata.
<dl>
<dt>bodyHash</dt>
<dd>This field carries a one-way hash of the contents of the
data body, in binary form. The hash function is MD5<br/>
Length: EDAM_HASH_LEN (exactly)
</dd>
<dt>size</dt>
<dd>The length, in bytes, of the data body.
</dd>
<dt>body</dt>
<dd>This field is set to contain the binary contents of the data
whenever the resource is being transferred. If only metadata is
being exchanged, this field will be empty. For example, a client could
notify the service about the change to an attribute for a resource
without transmitting the binary resource contents.
</dd>
</dl>
Constant Summary collapse
- BODYHASH =
1
- SIZE =
2
- BODY =
3
- FIELDS =
{ BODYHASH => {:type => ::Thrift::Types::STRING, :name => 'bodyHash', :binary => true, :optional => true}, SIZE => {:type => ::Thrift::Types::I32, :name => 'size', :optional => true}, BODY => {:type => ::Thrift::Types::STRING, :name => 'body', :binary => true, :optional => true} }
Constants included from Thrift::Struct_Union
Thrift::Struct_Union::CONTAINER_TYPES
Instance Method Summary collapse
Methods included from Thrift::Struct
#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write
Methods included from Thrift::Struct_Union
#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data
Instance Method Details
#struct_fields ⇒ Object
131 |
# File 'lib/Evernote/EDAM/types_types.rb', line 131 def struct_fields; FIELDS; end |
#validate ⇒ Object
133 134 |
# File 'lib/Evernote/EDAM/types_types.rb', line 133 def validate end |