1*890232f2SAndroid Build Coastguard Worker// Code generated by the FlatBuffers compiler. DO NOT EDIT. 2*890232f2SAndroid Build Coastguard Worker 3*890232f2SAndroid Build Coastguard Workerpackage optional_scalars 4*890232f2SAndroid Build Coastguard Worker 5*890232f2SAndroid Build Coastguard Workerimport "strconv" 6*890232f2SAndroid Build Coastguard Worker 7*890232f2SAndroid Build Coastguard Workertype OptionalByte int8 8*890232f2SAndroid Build Coastguard Worker 9*890232f2SAndroid Build Coastguard Workerconst ( 10*890232f2SAndroid Build Coastguard Worker OptionalByteNone OptionalByte = 0 11*890232f2SAndroid Build Coastguard Worker OptionalByteOne OptionalByte = 1 12*890232f2SAndroid Build Coastguard Worker OptionalByteTwo OptionalByte = 2 13*890232f2SAndroid Build Coastguard Worker) 14*890232f2SAndroid Build Coastguard Worker 15*890232f2SAndroid Build Coastguard Workervar EnumNamesOptionalByte = map[OptionalByte]string{ 16*890232f2SAndroid Build Coastguard Worker OptionalByteNone: "None", 17*890232f2SAndroid Build Coastguard Worker OptionalByteOne: "One", 18*890232f2SAndroid Build Coastguard Worker OptionalByteTwo: "Two", 19*890232f2SAndroid Build Coastguard Worker} 20*890232f2SAndroid Build Coastguard Worker 21*890232f2SAndroid Build Coastguard Workervar EnumValuesOptionalByte = map[string]OptionalByte{ 22*890232f2SAndroid Build Coastguard Worker "None": OptionalByteNone, 23*890232f2SAndroid Build Coastguard Worker "One": OptionalByteOne, 24*890232f2SAndroid Build Coastguard Worker "Two": OptionalByteTwo, 25*890232f2SAndroid Build Coastguard Worker} 26*890232f2SAndroid Build Coastguard Worker 27*890232f2SAndroid Build Coastguard Workerfunc (v OptionalByte) String() string { 28*890232f2SAndroid Build Coastguard Worker if s, ok := EnumNamesOptionalByte[v]; ok { 29*890232f2SAndroid Build Coastguard Worker return s 30*890232f2SAndroid Build Coastguard Worker } 31*890232f2SAndroid Build Coastguard Worker return "OptionalByte(" + strconv.FormatInt(int64(v), 10) + ")" 32*890232f2SAndroid Build Coastguard Worker} 33