From 3136827a380458bde444608e62016284038662bd Mon Sep 17 00:00:00 2001 From: traut Date: Thu, 26 Dec 2024 18:35:09 +0100 Subject: [PATCH] Protobuf update --- plugin/pluginapi/v1/data.pb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/pluginapi/v1/data.pb.go b/plugin/pluginapi/v1/data.pb.go index a9b32968..58410326 100644 --- a/plugin/pluginapi/v1/data.pb.go +++ b/plugin/pluginapi/v1/data.pb.go @@ -30,6 +30,7 @@ type Data struct { // *Data_BoolVal // *Data_ListVal // *Data_MapVal + // *Data_TimeVal Data isData_Data `protobuf_oneof:"data"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -118,8 +119,10 @@ func (x *Data) GetMapVal() *MapData { } func (x *Data) GetTimeVal() *timestamppb.Timestamp { - if x, ok := x.GetData().(*Data_TimeVal); ok { - return x.TimeVal + if x != nil { + if x, ok := x.Data.(*Data_TimeVal); ok { + return x.TimeVal + } } return nil }