class OpenTelemetry::Proto::Common::V1::AnyValue

Included Modules

Defined in:

opentelemetry.cr
proto/common.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(string_value : String) #

[View source]
def self.new(nil_value : Nil) #

[View source]
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) #

def self.new(bool_value : Bool) #

[View source]
def self.new(int_value : Int) #

[View source]
def self.new(double_value : Float) #

[View source]
def self.new(array_value : Array) #

[View source]
def self.new(kvlist_value : Hash) #

[View source]
def self.new(bytes_value : Bytes) #

[View source]

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def array_value : ArrayValue | Nil #

def array_value=(array_value : ArrayValue | Nil) #

def bool_value : Bool | Nil #

def bool_value=(bool_value : Bool | Nil) #

def bytes_value : Slice(UInt8) | Nil #

def bytes_value=(bytes_value : Slice(UInt8) | Nil) #

def double_value : Float64 | Nil #

def double_value=(double_value : Float64 | Nil) #

def int_value : Int64 | Nil #

def int_value=(int_value : Int64 | Nil) #

def kvlist_value : KeyValueList | Nil #

def kvlist_value=(kvlist_value : KeyValueList | Nil) #

def string_value : String | Nil #

def string_value=(string_value : String | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def unwrapped_value #

[View source]