func _MsgWithOneof_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*MsgWithOneof) switch tag { case 1: // union.title if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Union = &MsgWithOneof_Title{x} return true, err case 2: // union.salary if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Union = &MsgWithOneof_Salary{int64(x)} return true, err case 3: // union.Country if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Union = &MsgWithOneof_Country{x} return true, err default: return false, nil } }
func _Response_Result_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Response_Result) switch tag { case 2: // union.ddl if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Response_Result_DDL) err := b.DecodeMessage(msg) m.Union = &Response_Result_DDL_{msg} return true, err case 3: // union.rows_affected if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Union = &Response_Result_RowsAffected{uint32(x)} return true, err case 4: // union.rows if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Response_Result_Rows) err := b.DecodeMessage(msg) m.Union = &Response_Result_Rows_{msg} return true, err default: return false, nil } }
func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Value) switch tag { case 1: // kind.null_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Kind = &Value_NullValue{NullValue(x)} return true, err case 2: // kind.number_value if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() m.Kind = &Value_NumberValue{math.Float64frombits(x)} return true, err case 3: // kind.string_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Kind = &Value_StringValue{x} return true, err case 4: // kind.bool_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Kind = &Value_BoolValue{x != 0} return true, err case 5: // kind.struct_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Struct) err := b.DecodeMessage(msg) m.Kind = &Value_StructValue{msg} return true, err case 6: // kind.list_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ListValue) err := b.DecodeMessage(msg) m.Kind = &Value_ListValue{msg} return true, err default: return false, nil } }
func _Mutation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Mutation) switch tag { case 4: // operation.insert if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Entity) err := b.DecodeMessage(msg) m.Operation = &Mutation_Insert{msg} return true, err case 5: // operation.update if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Entity) err := b.DecodeMessage(msg) m.Operation = &Mutation_Update{msg} return true, err case 6: // operation.upsert if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Entity) err := b.DecodeMessage(msg) m.Operation = &Mutation_Upsert{msg} return true, err case 7: // operation.delete if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Key) err := b.DecodeMessage(msg) m.Operation = &Mutation_Delete{msg} return true, err case 8: // conflict_detection_strategy.base_version if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.ConflictDetectionStrategy = &Mutation_BaseVersion{int64(x)} return true, err default: return false, nil } }
func _Session_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Session) switch tag { case 5: // timezone.location if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Timezone = &Session_Location{x} return true, err case 6: // timezone.offset if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Timezone = &Session_Offset{int64(x)} return true, err default: return false, nil } }
func _Tree_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Tree) switch tag { case 1: // stuff.ValueString if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Stuff = &Tree_ValueString{x} return true, err case 4: // stuff.ValueNum if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Stuff = &Tree_ValueNum{x} return true, err default: return false, nil } }
func _Bar_OneofUnmarshaler(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error) { m := msg.(*Bar) switch tag { case 11: // pick.a if wire != proto1.WireVarint { return true, proto1.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Pick = &Bar_A{x != 0} return true, err case 12: // pick.b if wire != proto1.WireVarint { return true, proto1.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Pick = &Bar_B{x != 0} return true, err default: return false, nil } }
func _Key_PathElement_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Key_PathElement) switch tag { case 2: // id_type.id if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.IdType = &Key_PathElement_Id{int64(x)} return true, err case 3: // id_type.name if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.IdType = &Key_PathElement_Name{x} return true, err default: return false, nil } }
func _ReadOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*ReadOptions) switch tag { case 1: // consistency_type.read_consistency if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.ConsistencyType = &ReadOptions_ReadConsistency_{ReadOptions_ReadConsistency(x)} return true, err case 2: // consistency_type.transaction if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeRawBytes(true) m.ConsistencyType = &ReadOptions_Transaction{x} return true, err default: return false, nil } }
func _RowValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*RowValue) switch tag { case 1: // value.str if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Value = &RowValue_Str{x} return true, err case 2: // value.int if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &RowValue_Int{int32(x)} return true, err case 3: // value.real if wire != proto.WireFixed32 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed32() m.Value = &RowValue_Real{math.Float32frombits(uint32(x))} return true, err case 4: // value.date if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &RowValue_Date{int64(x)} return true, err case 5: // value.date_of_time if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &RowValue_DateOfTime{int64(x)} return true, err case 6: // value.time_of_day if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(TimeOfDay) err := b.DecodeMessage(msg) m.Value = &RowValue_TimeOfDay{msg} return true, err default: return false, nil } }
func _OptionValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*OptionValue) switch tag { case 2: // value.boolValue if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &OptionValue_BoolValue{x != 0} return true, err case 3: // value.intValue if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &OptionValue_IntValue{int64(x)} return true, err case 4: // value.doubleValue if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() m.Value = &OptionValue_DoubleValue{math.Float64frombits(x)} return true, err case 5: // value.stringValue if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Value = &OptionValue_StringValue{x} return true, err case 6: // value.durationValue if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Value = &OptionValue_DurationValue{int64(x)} return true, err default: return false, nil } }
func _Communique_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Communique) switch tag { case 5: // union.number if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Union = &Communique_Number{int32(x)} return true, err case 6: // union.name if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Union = &Communique_Name{x} return true, err case 7: // union.data if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeRawBytes(true) m.Union = &Communique_Data{x} return true, err case 8: // union.temp_c if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() m.Union = &Communique_TempC{math.Float64frombits(x)} return true, err case 9: // union.height if wire != proto.WireFixed32 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed32() m.Union = &Communique_Height{math.Float32frombits(uint32(x))} return true, err case 10: // union.today if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Union = &Communique_Today{Days(x)} return true, err case 11: // union.maybe if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Union = &Communique_Maybe{x != 0} return true, err case 12: // union.delta if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeZigzag32() m.Union = &Communique_Delta_{int32(x)} return true, err case 13: // union.msg if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Reply) err := b.DecodeMessage(msg) m.Union = &Communique_Msg{msg} return true, err case 14: // union.somegroup if wire != proto.WireStartGroup { return true, proto.ErrInternalBadWireType } msg := new(Communique_SomeGroup) err := b.DecodeGroup(msg) m.Union = &Communique_Somegroup{msg} return true, err default: return false, nil } }
func _Datum_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Datum) switch tag { case 1: // payload.bool_val if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Payload = &Datum_BoolVal{x != 0} return true, err case 2: // payload.int_val if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Payload = &Datum_IntVal{int64(x)} return true, err case 3: // payload.float_val if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() m.Payload = &Datum_FloatVal{math.Float64frombits(x)} return true, err case 4: // payload.bytes_val if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeRawBytes(true) m.Payload = &Datum_BytesVal{x} return true, err case 5: // payload.string_val if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.Payload = &Datum_StringVal{x} return true, err case 6: // payload.date_val if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Datum_Timestamp) err := b.DecodeMessage(msg) m.Payload = &Datum_DateVal{msg} return true, err case 7: // payload.time_val if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Datum_Timestamp) err := b.DecodeMessage(msg) m.Payload = &Datum_TimeVal{msg} return true, err case 8: // payload.interval_val if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.Payload = &Datum_IntervalVal{int64(x)} return true, err default: return false, nil } }
func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Value) switch tag { case 11: // value_type.null_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.ValueType = &Value_NullValue{google_protobuf1.NullValue(x)} return true, err case 1: // value_type.boolean_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.ValueType = &Value_BooleanValue{x != 0} return true, err case 2: // value_type.integer_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() m.ValueType = &Value_IntegerValue{int64(x)} return true, err case 3: // value_type.double_value if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() m.ValueType = &Value_DoubleValue{math.Float64frombits(x)} return true, err case 10: // value_type.timestamp_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(google_protobuf2.Timestamp) err := b.DecodeMessage(msg) m.ValueType = &Value_TimestampValue{msg} return true, err case 5: // value_type.key_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Key) err := b.DecodeMessage(msg) m.ValueType = &Value_KeyValue{msg} return true, err case 17: // value_type.string_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() m.ValueType = &Value_StringValue{x} return true, err case 18: // value_type.blob_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeRawBytes(true) m.ValueType = &Value_BlobValue{x} return true, err case 8: // value_type.geo_point_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(google_type.LatLng) err := b.DecodeMessage(msg) m.ValueType = &Value_GeoPointValue{msg} return true, err case 6: // value_type.entity_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(Entity) err := b.DecodeMessage(msg) m.ValueType = &Value_EntityValue{msg} return true, err case 9: // value_type.array_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ArrayValue) err := b.DecodeMessage(msg) m.ValueType = &Value_ArrayValue{msg} return true, err default: return false, nil } }