Пример #1
0
func (x *AuthError_ErrorType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(AuthError_ErrorType_value, data, "AuthError_ErrorType")
	if err != nil {
		return err
	}
	*x = AuthError_ErrorType(value)
	return nil
}
Пример #2
0
func (x *ColumnType_Kind) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(ColumnType_Kind_value, data, "ColumnType_Kind")
	if err != nil {
		return err
	}
	*x = ColumnType_Kind(value)
	return nil
}
Пример #3
0
func (x *PeerType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(PeerType_value, data, "PeerType")
	if err != nil {
		return err
	}
	*x = PeerType(value)
	return nil
}
Пример #4
0
func (x *PhproxydStatusT) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(PhproxydStatusT_value, data, "PhproxydStatusT")
	if err != nil {
		return err
	}
	*x = PhproxydStatusT(value)
	return nil
}
Пример #5
0
func (x *RequestMsgid) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(RequestMsgid_value, data, "RequestMsgid")
	if err != nil {
		return err
	}
	*x = RequestMsgid(value)
	return nil
}
Пример #6
0
func (x *SqlMode_BitPosition) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(SqlMode_BitPosition_value, data, "SqlMode_BitPosition")
	if err != nil {
		return err
	}
	*x = SqlMode_BitPosition(value)
	return nil
}
Пример #7
0
func (x *ConfChangeType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(ConfChangeType_value, data, "ConfChangeType")
	if err != nil {
		return err
	}
	*x = ConfChangeType(value)
	return nil
}
Пример #8
0
func (x *UserCmd) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(UserCmd_value, data, "UserCmd")
	if err != nil {
		return err
	}
	*x = UserCmd(value)
	return nil
}
Пример #9
0
func (x *Genre) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Genre_value, data, "Genre")
	if err != nil {
		return err
	}
	*x = Genre(value)
	return nil
}
Пример #10
0
func (x *Operation_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Operation_Type_value, data, "Operation_Type")
	if err != nil {
		return err
	}
	*x = Operation_Type(value)
	return nil
}
Пример #11
0
func (x *TheTestEnum) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(TheTestEnum_value, data, "TheTestEnum")
	if err != nil {
		return err
	}
	*x = TheTestEnum(value)
	return nil
}
Пример #12
0
func (x *Data_DataType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Data_DataType_value, data, "Data_DataType")
	if err != nil {
		return err
	}
	*x = Data_DataType(value)
	return nil
}
Пример #13
0
func (x *CastMessage_PayloadType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(CastMessage_PayloadType_value, data, "CastMessage_PayloadType")
	if err != nil {
		return err
	}
	*x = CastMessage_PayloadType(value)
	return nil
}
Пример #14
0
func (x *CastMessage_ProtocolVersion) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(CastMessage_ProtocolVersion_value, data, "CastMessage_ProtocolVersion")
	if err != nil {
		return err
	}
	*x = CastMessage_ProtocolVersion(value)
	return nil
}
Пример #15
0
func (x *ChecksumAlgorithm_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(ChecksumAlgorithm_Type_value, data, "ChecksumAlgorithm_Type")
	if err != nil {
		return err
	}
	*x = ChecksumAlgorithm_Type(value)
	return nil
}
Пример #16
0
func (x *Instrument) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Instrument_value, data, "Instrument")
	if err != nil {
		return err
	}
	*x = Instrument(value)
	return nil
}
Пример #17
0
func (x *QueryStatusCode_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(QueryStatusCode_Type_value, data, "QueryStatusCode_Type")
	if err != nil {
		return err
	}
	*x = QueryStatusCode_Type(value)
	return nil
}
Пример #18
0
func (x *TimeSeriesQueryDerivative) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(TimeSeriesQueryDerivative_value, data, "TimeSeriesQueryDerivative")
	if err != nil {
		return err
	}
	*x = TimeSeriesQueryDerivative(value)
	return nil
}
Пример #19
0
func (x *FieldType_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(FieldType_Type_value, data, "FieldType_Type")
	if err != nil {
		return err
	}
	*x = FieldType_Type(value)
	return nil
}
Пример #20
0
func (x *TimeSeriesQueryAggregator) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(TimeSeriesQueryAggregator_value, data, "TimeSeriesQueryAggregator")
	if err != nil {
		return err
	}
	*x = TimeSeriesQueryAggregator(value)
	return nil
}
Пример #21
0
func (x *Errno) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Errno_value, data, "Errno")
	if err != nil {
		return err
	}
	*x = Errno(value)
	return nil
}
Пример #22
0
func (x *Request_Color) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Request_Color_value, data, "Request_Color")
	if err != nil {
		return err
	}
	*x = Request_Color(value)
	return nil
}
Пример #23
0
func (x *StoreT) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(StoreT_value, data, "StoreT")
	if err != nil {
		return err
	}
	*x = StoreT(value)
	return nil
}
Пример #24
0
func (x *Reply_Entry_Game) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Reply_Entry_Game_value, data, "Reply_Entry_Game")
	if err != nil {
		return err
	}
	*x = Reply_Entry_Game(value)
	return nil
}
Пример #25
0
func (x *LogMessage_MessageType) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(LogMessage_MessageType_value, data, "LogMessage_MessageType")
	if err != nil {
		return err
	}
	*x = LogMessage_MessageType(value)
	return nil
}
Пример #26
0
func (x *Days) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Days_value, data, "Days")
	if err != nil {
		return err
	}
	*x = Days(value)
	return nil
}
Пример #27
0
func (x *Method) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Method_value, data, "Method")
	if err != nil {
		return err
	}
	*x = Method(value)
	return nil
}
Пример #28
0
func (x *RowsEventVersion_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(RowsEventVersion_Type_value, data, "RowsEventVersion_Type")
	if err != nil {
		return err
	}
	*x = RowsEventVersion_Type(value)
	return nil
}
Пример #29
0
func (x *Widget_Color) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Widget_Color_value, data, "Widget_Color")
	if err != nil {
		return err
	}
	*x = Widget_Color(value)
	return nil
}
Пример #30
0
func (x *Task_State) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(Task_State_value, data, "Task_State")
	if err != nil {
		return err
	}
	*x = Task_State(value)
	return nil
}