struct OpenTelemetry::Proto::Common::V1::AnyValue
- OpenTelemetry::Proto::Common::V1::AnyValue
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/common.pb.crConstant Summary
-
FIELDS =
{1 => {name: :string_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :bool_value, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :int_value, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :double_value, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :array_value, pb_type: ArrayValue, crystal_type: ArrayValue, cast_type: ArrayValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :kvlist_value, pb_type: KeyValueList, crystal_type: KeyValueList, cast_type: KeyValueList?, native: false, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :bytes_value, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(string_value : String | Nil = nil, bool_value : Bool | Nil = nil, int_value : Int64 | Nil = nil, double_value : Float64 | Nil = nil, array_value : ArrayValue | Nil = nil, kvlist_value : KeyValueList | Nil = nil, bytes_value : Slice(UInt8) | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #array_value : ArrayValue | Nil
- #array_value=(array_value : ArrayValue | Nil)
- #bool_value : Bool | Nil
- #bool_value=(bool_value : Bool | Nil)
- #bytes_value : Slice(UInt8) | Nil
- #bytes_value=(bytes_value : Slice(UInt8) | Nil)
- #double_value : Float64 | Nil
- #double_value=(double_value : Float64 | Nil)
- #int_value : Int64 | Nil
- #int_value=(int_value : Int64 | Nil)
- #kvlist_value : KeyValueList | Nil
- #kvlist_value=(kvlist_value : KeyValueList | Nil)
- #string_value : String | Nil
- #string_value=(string_value : String | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(string_value : String | Nil = nil, bool_value : Bool | Nil = nil, int_value : Int64 | Nil = nil, double_value : Float64 | Nil = nil, array_value : ArrayValue | Nil = nil, kvlist_value : KeyValueList | Nil = nil, bytes_value : Slice(UInt8) | Nil = nil)
#