Sha256: 3591ea18941702e08bcb89f31d9c20d4f589572907f29ac3b6794c5ad9669949
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
# # Autogenerated by Thrift Compiler (2.3.0-upfluence) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' module Thrift module Types module Known module Duration class Duration; end class Duration include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 'Duration'.freeze NAMESPACE = 'types.known.duration'.freeze THRIFT_FIELD_INDEX_SECONDS = 1 THRIFT_FIELD_INDEX_NANOS = 2 FIELDS = { THRIFT_FIELD_INDEX_SECONDS => {type: ::Thrift::Types::I64, name: 'seconds'}, THRIFT_FIELD_INDEX_NANOS => {type: ::Thrift::Types::I32, name: 'nanos'} } def struct_fields; FIELDS; end def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field seconds is unset!') unless @seconds raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nanos is unset!') unless @nanos end ::Thrift::Struct.generate_accessors self ::Thrift.register_struct_type self end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems