Package dev.vality.damsel.msgpack
Class Value
java.lang.Object
org.apache.thrift.TUnion<Value,Value._Fields>
dev.vality.damsel.msgpack.Value
- All Implemented Interfaces:
Serializable,Comparable<Value>,org.apache.thrift.TBase<Value,,Value._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class Value
extends org.apache.thrift.TUnion<Value,Value._Fields>
Значение в msgpack, согласно [спецификации](https://github.com/msgpack/msgpack/blob/master/spec.md).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<Value._Fields,org.apache.thrift.meta_data.FieldMetaData> Fields inherited from class org.apache.thrift.TUnion
setField_, value_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Valuestatic Valueb(boolean value) static Valuebin(byte[] value) static Valuebin(ByteBuffer value) protected voidcheckType(Value._Fields setField, Object value) intdeepCopy()protected Value._FieldsenumForId(short id) booleanbooleanfieldForId(int fieldId) static Valueflt(double value) getArr()booleangetB()byte[]getBin()protected org.apache.thrift.protocol.TFieldgetFieldDesc(Value._Fields setField) Map<Value._Fields,org.apache.thrift.meta_data.FieldMetaData> doublegetFlt()longgetI()getNl()getObj()getStr()protected org.apache.thrift.protocol.TStructinthashCode()static Valuei(long value) booleanisSetArr()booleanisSetB()booleanisSetBin()booleanisSetFlt()booleanisSetI()booleanisSetNl()booleanisSetObj()booleanisSetStr()static Valuestatic ValuevoidvoidsetB(boolean value) voidsetBin(byte[] value) voidsetBin(ByteBuffer value) voidsetFlt(double value) voidsetI(long value) voidvoidvoidprotected ObjectstandardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) protected voidstandardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) static Valueprotected ObjecttupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) protected voidtupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) Methods inherited from class org.apache.thrift.TUnion
clear, getFieldValue, getFieldValue, getFieldValue, getSetField, isSet, isSet, isSet, read, setFieldValue, setFieldValue, toString, write
-
Field Details
-
metaDataMap
-
-
Constructor Details
-
Value
public Value() -
Value
-
Value
-
-
Method Details
-
deepCopy
-
nl
-
b
-
i
-
flt
-
str
-
bin
-
bin
-
obj
-
arr
-
checkType
- Specified by:
checkTypein classorg.apache.thrift.TUnion<Value,Value._Fields> - Throws:
ClassCastException
-
standardSchemeReadValue
protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException - Specified by:
standardSchemeReadValuein classorg.apache.thrift.TUnion<Value,Value._Fields> - Throws:
org.apache.thrift.TException
-
standardSchemeWriteValue
protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
standardSchemeWriteValuein classorg.apache.thrift.TUnion<Value,Value._Fields> - Throws:
org.apache.thrift.TException
-
tupleSchemeReadValue
protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException - Specified by:
tupleSchemeReadValuein classorg.apache.thrift.TUnion<Value,Value._Fields> - Throws:
org.apache.thrift.TException
-
tupleSchemeWriteValue
protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
tupleSchemeWriteValuein classorg.apache.thrift.TUnion<Value,Value._Fields> - Throws:
org.apache.thrift.TException
-
getFieldDesc
- Specified by:
getFieldDescin classorg.apache.thrift.TUnion<Value,Value._Fields>
-
getStructDesc
protected org.apache.thrift.protocol.TStruct getStructDesc()- Specified by:
getStructDescin classorg.apache.thrift.TUnion<Value,Value._Fields>
-
enumForId
- Specified by:
enumForIdin classorg.apache.thrift.TUnion<Value,Value._Fields>
-
getFields
-
getFieldMetaData
-
fieldForId
-
getNl
-
setNl
-
getB
public boolean getB() -
setB
public void setB(boolean value) -
getI
public long getI() -
setI
public void setI(long value) -
getFlt
public double getFlt() -
setFlt
public void setFlt(double value) -
getStr
-
setStr
-
getBin
public byte[] getBin() -
bufferForBin
-
setBin
public void setBin(byte[] value) -
setBin
-
getObj
-
setObj
-
getArr
-
setArr
-
isSetNl
public boolean isSetNl() -
isSetB
public boolean isSetB() -
isSetI
public boolean isSetI() -
isSetFlt
public boolean isSetFlt() -
isSetStr
public boolean isSetStr() -
isSetBin
public boolean isSetBin() -
isSetObj
public boolean isSetObj() -
isSetArr
public boolean isSetArr() -
equals
-
equals
-
compareTo
-
hashCode
public int hashCode()
-