diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e8f6e3d..6f46104a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- [#80](https://github.com/cludden/protoc-gen-go-temporal/pull/80) fix cross-package signal-with-start + # [1.14.3](https://github.com/cludden/protoc-gen-go-temporal/releases/tag/v1.14.2) - 2024-08-09 diff --git a/gen/example/helloworld/v1/example.pb.go b/gen/example/helloworld/v1/example.pb.go index d2fbb084..5755dc0f 100644 --- a/gen/example/helloworld/v1/example.pb.go +++ b/gen/example/helloworld/v1/example.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/helloworld/v1/example.proto @@ -33,11 +33,9 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_helloworld_v1_example_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_helloworld_v1_example_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloRequest) String() string { @@ -48,7 +46,7 @@ func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { mi := &file_example_helloworld_v1_example_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -81,11 +79,9 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_helloworld_v1_example_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_helloworld_v1_example_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloResponse) String() string { @@ -96,7 +92,7 @@ func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { mi := &file_example_helloworld_v1_example_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -128,11 +124,9 @@ type GoodbyeRequest struct { func (x *GoodbyeRequest) Reset() { *x = GoodbyeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_helloworld_v1_example_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_helloworld_v1_example_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GoodbyeRequest) String() string { @@ -143,7 +137,7 @@ func (*GoodbyeRequest) ProtoMessage() {} func (x *GoodbyeRequest) ProtoReflect() protoreflect.Message { mi := &file_example_helloworld_v1_example_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -253,44 +247,6 @@ func file_example_helloworld_v1_example_proto_init() { if File_example_helloworld_v1_example_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_helloworld_v1_example_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*HelloRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_helloworld_v1_example_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*HelloResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_helloworld_v1_example_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GoodbyeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/helloworld/v1/example_temporal.pb.go b/gen/example/helloworld/v1/example_temporal.pb.go index 2310668f..9e1f3c16 100644 --- a/gen/example/helloworld/v1/example_temporal.pb.go +++ b/gen/example/helloworld/v1/example_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/helloworld/v1/helloworldv1xns/example_xns_temporal.pb.go b/gen/example/helloworld/v1/helloworldv1xns/example_xns_temporal.pb.go index 45fbe48d..a023b7b4 100644 --- a/gen/example/helloworld/v1/helloworldv1xns/example_xns_temporal.pb.go +++ b/gen/example/helloworld/v1/helloworldv1xns/example_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/mutex/v1/mutex.pb.go b/gen/example/mutex/v1/mutex.pb.go index ed4a9957..a85c5f94 100644 --- a/gen/example/mutex/v1/mutex.pb.go +++ b/gen/example/mutex/v1/mutex.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/mutex/v1/mutex.proto @@ -33,11 +33,9 @@ type MutexInput struct { func (x *MutexInput) Reset() { *x = MutexInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_mutex_v1_mutex_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_mutex_v1_mutex_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MutexInput) String() string { @@ -48,7 +46,7 @@ func (*MutexInput) ProtoMessage() {} func (x *MutexInput) ProtoReflect() protoreflect.Message { mi := &file_example_mutex_v1_mutex_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -81,11 +79,9 @@ type AcquireLockInput struct { func (x *AcquireLockInput) Reset() { *x = AcquireLockInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_mutex_v1_mutex_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_mutex_v1_mutex_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AcquireLockInput) String() string { @@ -96,7 +92,7 @@ func (*AcquireLockInput) ProtoMessage() {} func (x *AcquireLockInput) ProtoReflect() protoreflect.Message { mi := &file_example_mutex_v1_mutex_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,11 +131,9 @@ type LockAcquiredInput struct { func (x *LockAcquiredInput) Reset() { *x = LockAcquiredInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_mutex_v1_mutex_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_mutex_v1_mutex_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LockAcquiredInput) String() string { @@ -150,7 +144,7 @@ func (*LockAcquiredInput) ProtoMessage() {} func (x *LockAcquiredInput) ProtoReflect() protoreflect.Message { mi := &file_example_mutex_v1_mutex_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -182,11 +176,9 @@ type ReleaseLockInput struct { func (x *ReleaseLockInput) Reset() { *x = ReleaseLockInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_mutex_v1_mutex_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_mutex_v1_mutex_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReleaseLockInput) String() string { @@ -197,7 +189,7 @@ func (*ReleaseLockInput) ProtoMessage() {} func (x *ReleaseLockInput) ProtoReflect() protoreflect.Message { mi := &file_example_mutex_v1_mutex_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,11 +222,9 @@ type SampleWorkflowWithMutexInput struct { func (x *SampleWorkflowWithMutexInput) Reset() { *x = SampleWorkflowWithMutexInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_mutex_v1_mutex_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_mutex_v1_mutex_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SampleWorkflowWithMutexInput) String() string { @@ -245,7 +235,7 @@ func (*SampleWorkflowWithMutexInput) ProtoMessage() {} func (x *SampleWorkflowWithMutexInput) ProtoReflect() protoreflect.Message { mi := &file_example_mutex_v1_mutex_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -408,68 +398,6 @@ func file_example_mutex_v1_mutex_proto_init() { if File_example_mutex_v1_mutex_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_mutex_v1_mutex_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MutexInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_mutex_v1_mutex_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*AcquireLockInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_mutex_v1_mutex_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*LockAcquiredInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_mutex_v1_mutex_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ReleaseLockInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_mutex_v1_mutex_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SampleWorkflowWithMutexInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/mutex/v1/mutex_temporal.pb.go b/gen/example/mutex/v1/mutex_temporal.pb.go index 7700f496..04b3158c 100644 --- a/gen/example/mutex/v1/mutex_temporal.pb.go +++ b/gen/example/mutex/v1/mutex_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // @@ -1755,7 +1755,7 @@ func (c *TestExampleClient) MutexWithAcquireLock(ctx context.Context, req *Mutex // MutexWithAcquireLockAsync sends a(n) example.mutex.v1.Example.AcquireLock signal to a(n) example.mutex.v1.Example.Mutex workflow, starting it if necessary func (c *TestExampleClient) MutexWithAcquireLockAsync(ctx context.Context, req *MutexInput, signal *AcquireLockInput, opts ...*MutexOptions) (MutexRun, error) { c.env.RegisterDelayedCallback(func() { - _ = c.AcquireLock(ctx, "", "", signal) + c.env.SignalWorkflow(AcquireLockSignalName, signal) }, 0) return c.MutexAsync(ctx, req, opts...) } diff --git a/gen/example/mutex/v1/mutexv1xns/mutex_xns_temporal.pb.go b/gen/example/mutex/v1/mutexv1xns/mutex_xns_temporal.pb.go index 54ab846d..803ce243 100644 --- a/gen/example/mutex/v1/mutexv1xns/mutex_xns_temporal.pb.go +++ b/gen/example/mutex/v1/mutexv1xns/mutex_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/schedule/v1/schedule.pb.go b/gen/example/schedule/v1/schedule.pb.go index fb351134..fe60ad0a 100644 --- a/gen/example/schedule/v1/schedule.pb.go +++ b/gen/example/schedule/v1/schedule.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/schedule/v1/schedule.proto @@ -30,11 +30,9 @@ type ScheduleInput struct { func (x *ScheduleInput) Reset() { *x = ScheduleInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_schedule_v1_schedule_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_schedule_v1_schedule_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScheduleInput) String() string { @@ -45,7 +43,7 @@ func (*ScheduleInput) ProtoMessage() {} func (x *ScheduleInput) ProtoReflect() protoreflect.Message { mi := &file_example_schedule_v1_schedule_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,11 +68,9 @@ type ScheduleOutput struct { func (x *ScheduleOutput) Reset() { *x = ScheduleOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_schedule_v1_schedule_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_schedule_v1_schedule_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScheduleOutput) String() string { @@ -85,7 +81,7 @@ func (*ScheduleOutput) ProtoMessage() {} func (x *ScheduleOutput) ProtoReflect() protoreflect.Message { mi := &file_example_schedule_v1_schedule_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -184,32 +180,6 @@ func file_example_schedule_v1_schedule_proto_init() { if File_example_schedule_v1_schedule_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_schedule_v1_schedule_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ScheduleInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_schedule_v1_schedule_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ScheduleOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/schedule/v1/schedule_temporal.pb.go b/gen/example/schedule/v1/schedule_temporal.pb.go index a4f51c4b..b7766340 100644 --- a/gen/example/schedule/v1/schedule_temporal.pb.go +++ b/gen/example/schedule/v1/schedule_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/schedule/v1/schedulev1xns/schedule_xns_temporal.pb.go b/gen/example/schedule/v1/schedulev1xns/schedule_xns_temporal.pb.go index 46cafc44..fb4a44a4 100644 --- a/gen/example/schedule/v1/schedulev1xns/schedule_xns_temporal.pb.go +++ b/gen/example/schedule/v1/schedulev1xns/schedule_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/searchattributes/v1/searchattributes.pb.go b/gen/example/searchattributes/v1/searchattributes.pb.go index 693643ab..b930a0ea 100644 --- a/gen/example/searchattributes/v1/searchattributes.pb.go +++ b/gen/example/searchattributes/v1/searchattributes.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/searchattributes/v1/searchattributes.proto @@ -38,11 +38,9 @@ type SearchAttributesInput struct { func (x *SearchAttributesInput) Reset() { *x = SearchAttributesInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_searchattributes_v1_searchattributes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_searchattributes_v1_searchattributes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchAttributesInput) String() string { @@ -53,7 +51,7 @@ func (*SearchAttributesInput) ProtoMessage() {} func (x *SearchAttributesInput) ProtoReflect() protoreflect.Message { mi := &file_example_searchattributes_v1_searchattributes_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,20 +226,6 @@ func file_example_searchattributes_v1_searchattributes_proto_init() { if File_example_searchattributes_v1_searchattributes_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_searchattributes_v1_searchattributes_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*SearchAttributesInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/searchattributes/v1/searchattributes_temporal.pb.go b/gen/example/searchattributes/v1/searchattributes_temporal.pb.go index 5a11a58e..ffd47880 100644 --- a/gen/example/searchattributes/v1/searchattributes_temporal.pb.go +++ b/gen/example/searchattributes/v1/searchattributes_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/searchattributes/v1/searchattributesv1xns/searchattributes_xns_temporal.pb.go b/gen/example/searchattributes/v1/searchattributesv1xns/searchattributes_xns_temporal.pb.go index c722f2b4..e942851a 100644 --- a/gen/example/searchattributes/v1/searchattributesv1xns/searchattributes_xns_temporal.pb.go +++ b/gen/example/searchattributes/v1/searchattributesv1xns/searchattributes_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/updatabletimer/v1/updatabletimer.pb.go b/gen/example/updatabletimer/v1/updatabletimer.pb.go index 903f870b..4d276845 100644 --- a/gen/example/updatabletimer/v1/updatabletimer.pb.go +++ b/gen/example/updatabletimer/v1/updatabletimer.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/updatabletimer/v1/updatabletimer.proto @@ -34,11 +34,9 @@ type GetWakeUpTimeOutput struct { func (x *GetWakeUpTimeOutput) Reset() { *x = GetWakeUpTimeOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetWakeUpTimeOutput) String() string { @@ -49,7 +47,7 @@ func (*GetWakeUpTimeOutput) ProtoMessage() {} func (x *GetWakeUpTimeOutput) ProtoReflect() protoreflect.Message { mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -83,11 +81,9 @@ type UpdatableTimerInput struct { func (x *UpdatableTimerInput) Reset() { *x = UpdatableTimerInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdatableTimerInput) String() string { @@ -98,7 +94,7 @@ func (*UpdatableTimerInput) ProtoMessage() {} func (x *UpdatableTimerInput) ProtoReflect() protoreflect.Message { mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -138,11 +134,9 @@ type UpdateWakeUpTimeInput struct { func (x *UpdateWakeUpTimeInput) Reset() { *x = UpdateWakeUpTimeInput{} - if protoimpl.UnsafeEnabled { - mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateWakeUpTimeInput) String() string { @@ -153,7 +147,7 @@ func (*UpdateWakeUpTimeInput) ProtoMessage() {} func (x *UpdateWakeUpTimeInput) ProtoReflect() protoreflect.Message { mi := &file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -295,44 +289,6 @@ func file_example_updatabletimer_v1_updatabletimer_proto_init() { if File_example_updatabletimer_v1_updatabletimer_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*GetWakeUpTimeOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*UpdatableTimerInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_updatabletimer_v1_updatabletimer_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*UpdateWakeUpTimeInput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/updatabletimer/v1/updatabletimer_temporal.pb.go b/gen/example/updatabletimer/v1/updatabletimer_temporal.pb.go index 94d75418..c39a5e3c 100644 --- a/gen/example/updatabletimer/v1/updatabletimer_temporal.pb.go +++ b/gen/example/updatabletimer/v1/updatabletimer_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/updatabletimer/v1/updatabletimerv1xns/updatabletimer_xns_temporal.pb.go b/gen/example/updatabletimer/v1/updatabletimerv1xns/updatabletimer_xns_temporal.pb.go index 2033fdc7..b35d8333 100644 --- a/gen/example/updatabletimer/v1/updatabletimerv1xns/updatabletimer_xns_temporal.pb.go +++ b/gen/example/updatabletimer/v1/updatabletimerv1xns/updatabletimer_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/v1/example.pb.go b/gen/example/v1/example.pb.go index f0724a0f..4b3400f5 100644 --- a/gen/example/v1/example.pb.go +++ b/gen/example/v1/example.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/v1/example.proto @@ -83,11 +83,9 @@ type CreateFooRequest struct { func (x *CreateFooRequest) Reset() { *x = CreateFooRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateFooRequest) String() string { @@ -98,7 +96,7 @@ func (*CreateFooRequest) ProtoMessage() {} func (x *CreateFooRequest) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,11 +129,9 @@ type CreateFooResponse struct { func (x *CreateFooResponse) Reset() { *x = CreateFooResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateFooResponse) String() string { @@ -146,7 +142,7 @@ func (*CreateFooResponse) ProtoMessage() {} func (x *CreateFooResponse) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,11 +176,9 @@ type Foo struct { func (x *Foo) Reset() { *x = Foo{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Foo) String() string { @@ -195,7 +189,7 @@ func (*Foo) ProtoMessage() {} func (x *Foo) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -236,11 +230,9 @@ type GetFooProgressResponse struct { func (x *GetFooProgressResponse) Reset() { *x = GetFooProgressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFooProgressResponse) String() string { @@ -251,7 +243,7 @@ func (*GetFooProgressResponse) ProtoMessage() {} func (x *GetFooProgressResponse) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -291,11 +283,9 @@ type NotifyRequest struct { func (x *NotifyRequest) Reset() { *x = NotifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NotifyRequest) String() string { @@ -306,7 +296,7 @@ func (*NotifyRequest) ProtoMessage() {} func (x *NotifyRequest) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -340,11 +330,9 @@ type SetFooProgressRequest struct { func (x *SetFooProgressRequest) Reset() { *x = SetFooProgressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_v1_example_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_v1_example_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetFooProgressRequest) String() string { @@ -355,7 +343,7 @@ func (*SetFooProgressRequest) ProtoMessage() {} func (x *SetFooProgressRequest) ProtoReflect() protoreflect.Message { mi := &file_example_v1_example_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -515,80 +503,6 @@ func file_example_v1_example_proto_init() { if File_example_v1_example_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_v1_example_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CreateFooRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_v1_example_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateFooResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_v1_example_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Foo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_v1_example_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetFooProgressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_v1_example_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*NotifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_v1_example_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SetFooProgressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/v1/example_temporal.pb.go b/gen/example/v1/example_temporal.pb.go index 292fd537..bc4fff7d 100644 --- a/gen/example/v1/example_temporal.pb.go +++ b/gen/example/v1/example_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // @@ -1354,7 +1354,7 @@ func (c *TestExampleClient) CreateFooWithSetFooProgress(ctx context.Context, req // CreateFooWithSetFooProgressAsync sends a(n) example.v1.Example.SetFooProgress signal to a(n) example.v1.Example.CreateFoo workflow, starting it if necessary func (c *TestExampleClient) CreateFooWithSetFooProgressAsync(ctx context.Context, req *CreateFooRequest, signal *SetFooProgressRequest, opts ...*CreateFooOptions) (CreateFooRun, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SetFooProgress(ctx, "", "", signal) + c.env.SignalWorkflow(SetFooProgressSignalName, signal) }, 0) return c.CreateFooAsync(ctx, req, opts...) } diff --git a/gen/example/v1/examplev1xns/example_xns_temporal.pb.go b/gen/example/v1/examplev1xns/example_xns_temporal.pb.go index 82b8da54..dd84e050 100644 --- a/gen/example/v1/examplev1xns/example_xns_temporal.pb.go +++ b/gen/example/v1/examplev1xns/example_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/example/xns/v1/xns.pb.go b/gen/example/xns/v1/xns.pb.go index 6eba1fd2..3c2bd71a 100644 --- a/gen/example/xns/v1/xns.pb.go +++ b/gen/example/xns/v1/xns.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: example/xns/v1/xns.proto @@ -83,11 +83,9 @@ type CreateFooRequest struct { func (x *CreateFooRequest) Reset() { *x = CreateFooRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateFooRequest) String() string { @@ -98,7 +96,7 @@ func (*CreateFooRequest) ProtoMessage() {} func (x *CreateFooRequest) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,11 +129,9 @@ type CreateFooResponse struct { func (x *CreateFooResponse) Reset() { *x = CreateFooResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateFooResponse) String() string { @@ -146,7 +142,7 @@ func (*CreateFooResponse) ProtoMessage() {} func (x *CreateFooResponse) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,11 +176,9 @@ type Foo struct { func (x *Foo) Reset() { *x = Foo{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Foo) String() string { @@ -195,7 +189,7 @@ func (*Foo) ProtoMessage() {} func (x *Foo) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -236,11 +230,9 @@ type GetFooProgressResponse struct { func (x *GetFooProgressResponse) Reset() { *x = GetFooProgressResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFooProgressResponse) String() string { @@ -251,7 +243,7 @@ func (*GetFooProgressResponse) ProtoMessage() {} func (x *GetFooProgressResponse) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -291,11 +283,9 @@ type NotifyRequest struct { func (x *NotifyRequest) Reset() { *x = NotifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NotifyRequest) String() string { @@ -306,7 +296,7 @@ func (*NotifyRequest) ProtoMessage() {} func (x *NotifyRequest) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -340,11 +330,9 @@ type ProvisionFooRequest struct { func (x *ProvisionFooRequest) Reset() { *x = ProvisionFooRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvisionFooRequest) String() string { @@ -355,7 +343,7 @@ func (*ProvisionFooRequest) ProtoMessage() {} func (x *ProvisionFooRequest) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -388,11 +376,9 @@ type ProvisionFooResponse struct { func (x *ProvisionFooResponse) Reset() { *x = ProvisionFooResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvisionFooResponse) String() string { @@ -403,7 +389,7 @@ func (*ProvisionFooResponse) ProtoMessage() {} func (x *ProvisionFooResponse) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -437,11 +423,9 @@ type SetFooProgressRequest struct { func (x *SetFooProgressRequest) Reset() { *x = SetFooProgressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_example_xns_v1_xns_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_example_xns_v1_xns_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetFooProgressRequest) String() string { @@ -452,7 +436,7 @@ func (*SetFooProgressRequest) ProtoMessage() {} func (x *SetFooProgressRequest) ProtoReflect() protoreflect.Message { mi := &file_example_xns_v1_xns_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -641,104 +625,6 @@ func file_example_xns_v1_xns_proto_init() { if File_example_xns_v1_xns_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_example_xns_v1_xns_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CreateFooRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CreateFooResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Foo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GetFooProgressResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*NotifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ProvisionFooRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ProvisionFooResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_example_xns_v1_xns_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SetFooProgressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/example/xns/v1/xns_temporal.pb.go b/gen/example/xns/v1/xns_temporal.pb.go index 8a254bbd..4997a99b 100644 --- a/gen/example/xns/v1/xns_temporal.pb.go +++ b/gen/example/xns/v1/xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // @@ -2301,7 +2301,7 @@ func (c *TestExampleClient) CreateFooWithSetFooProgress(ctx context.Context, req // CreateFooWithSetFooProgressAsync sends a(n) example.xns.v1.Example.SetFooProgress signal to a(n) example.xns.v1.Example.CreateFoo workflow, starting it if necessary func (c *TestExampleClient) CreateFooWithSetFooProgressAsync(ctx context.Context, req *CreateFooRequest, signal *SetFooProgressRequest, opts ...*CreateFooOptions) (CreateFooRun, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SetFooProgress(ctx, "", "", signal) + c.env.SignalWorkflow(SetFooProgressSignalName, signal) }, 0) return c.CreateFooAsync(ctx, req, opts...) } diff --git a/gen/example/xns/v1/xnsv1xns/xns_xns_temporal.pb.go b/gen/example/xns/v1/xnsv1xns/xns_xns_temporal.pb.go index a943672c..91a2fb59 100644 --- a/gen/example/xns/v1/xnsv1xns/xns_xns_temporal.pb.go +++ b/gen/example/xns/v1/xnsv1xns/xns_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/patch/go.pb.go b/gen/patch/go.pb.go index 5b8129ea..5c9aaf1a 100644 --- a/gen/patch/go.pb.go +++ b/gen/patch/go.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: patch/go.proto @@ -60,11 +60,9 @@ type Options struct { func (x *Options) Reset() { *x = Options{} - if protoimpl.UnsafeEnabled { - mi := &file_patch_go_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_patch_go_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Options) String() string { @@ -75,7 +73,7 @@ func (*Options) ProtoMessage() {} func (x *Options) ProtoReflect() protoreflect.Message { mi := &file_patch_go_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -168,11 +166,9 @@ type LintOptions struct { func (x *LintOptions) Reset() { *x = LintOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_patch_go_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_patch_go_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LintOptions) String() string { @@ -183,7 +179,7 @@ func (*LintOptions) ProtoMessage() {} func (x *LintOptions) ProtoReflect() protoreflect.Message { mi := &file_patch_go_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -447,32 +443,6 @@ func file_patch_go_proto_init() { if File_patch_go_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_patch_go_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Options); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_patch_go_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*LintOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/temporal/v1/temporal.pb.go b/gen/temporal/v1/temporal.pb.go index dce212ae..ec1fa397 100644 --- a/gen/temporal/v1/temporal.pb.go +++ b/gen/temporal/v1/temporal.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: temporal/v1/temporal.proto @@ -379,11 +379,9 @@ type ActivityOptions struct { func (x *ActivityOptions) Reset() { *x = ActivityOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityOptions) String() string { @@ -394,7 +392,7 @@ func (*ActivityOptions) ProtoMessage() {} func (x *ActivityOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -475,11 +473,9 @@ type CLIOptions struct { func (x *CLIOptions) Reset() { *x = CLIOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CLIOptions) String() string { @@ -490,7 +486,7 @@ func (*CLIOptions) ProtoMessage() {} func (x *CLIOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -522,11 +518,9 @@ type CommandOptions struct { func (x *CommandOptions) Reset() { *x = CommandOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommandOptions) String() string { @@ -537,7 +531,7 @@ func (*CommandOptions) ProtoMessage() {} func (x *CommandOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -576,11 +570,9 @@ type Patch struct { func (x *Patch) Reset() { *x = Patch{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Patch) String() string { @@ -591,7 +583,7 @@ func (*Patch) ProtoMessage() {} func (x *Patch) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -637,11 +629,9 @@ type QueryOptions struct { func (x *QueryOptions) Reset() { *x = QueryOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryOptions) String() string { @@ -652,7 +642,7 @@ func (*QueryOptions) ProtoMessage() {} func (x *QueryOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -703,11 +693,9 @@ type RetryPolicy struct { func (x *RetryPolicy) Reset() { *x = RetryPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RetryPolicy) String() string { @@ -718,7 +706,7 @@ func (*RetryPolicy) ProtoMessage() {} func (x *RetryPolicy) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -787,11 +775,9 @@ type ServiceOptions struct { func (x *ServiceOptions) Reset() { *x = ServiceOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceOptions) String() string { @@ -802,7 +788,7 @@ func (*ServiceOptions) ProtoMessage() {} func (x *ServiceOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -856,11 +842,9 @@ type SignalOptions struct { func (x *SignalOptions) Reset() { *x = SignalOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignalOptions) String() string { @@ -871,7 +855,7 @@ func (*SignalOptions) ProtoMessage() {} func (x *SignalOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -932,11 +916,9 @@ type UpdateOptions struct { func (x *UpdateOptions) Reset() { *x = UpdateOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateOptions) String() string { @@ -947,7 +929,7 @@ func (*UpdateOptions) ProtoMessage() {} func (x *UpdateOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1067,11 +1049,9 @@ type WorkflowOptions struct { func (x *WorkflowOptions) Reset() { *x = WorkflowOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowOptions) String() string { @@ -1082,7 +1062,7 @@ func (*WorkflowOptions) ProtoMessage() {} func (x *WorkflowOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1252,11 +1232,9 @@ type XNSActivityOptions struct { func (x *XNSActivityOptions) Reset() { *x = XNSActivityOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *XNSActivityOptions) String() string { @@ -1267,7 +1245,7 @@ func (*XNSActivityOptions) ProtoMessage() {} func (x *XNSActivityOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1359,11 +1337,9 @@ type WorkflowOptions_Query struct { func (x *WorkflowOptions_Query) Reset() { *x = WorkflowOptions_Query{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowOptions_Query) String() string { @@ -1374,7 +1350,7 @@ func (*WorkflowOptions_Query) ProtoMessage() {} func (x *WorkflowOptions_Query) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1419,11 +1395,9 @@ type WorkflowOptions_Signal struct { func (x *WorkflowOptions_Signal) Reset() { *x = WorkflowOptions_Signal{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowOptions_Signal) String() string { @@ -1434,7 +1408,7 @@ func (*WorkflowOptions_Signal) ProtoMessage() {} func (x *WorkflowOptions_Signal) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1484,11 +1458,9 @@ type WorkflowOptions_Update struct { func (x *WorkflowOptions_Update) Reset() { *x = WorkflowOptions_Update{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_v1_temporal_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_v1_temporal_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowOptions_Update) String() string { @@ -1499,7 +1471,7 @@ func (*WorkflowOptions_Update) ProtoMessage() {} func (x *WorkflowOptions_Update) ProtoReflect() protoreflect.Message { mi := &file_temporal_v1_temporal_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2058,176 +2030,6 @@ func file_temporal_v1_temporal_proto_init() { if File_temporal_v1_temporal_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_temporal_v1_temporal_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ActivityOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*CLIOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CommandOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Patch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*QueryOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*RetryPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ServiceOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SignalOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*XNSActivityOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowOptions_Query); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowOptions_Signal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_v1_temporal_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowOptions_Update); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/temporal/xns/v1/xns.pb.go b/gen/temporal/xns/v1/xns.pb.go index 0675aab2..fdfaf4b5 100644 --- a/gen/temporal/xns/v1/xns.pb.go +++ b/gen/temporal/xns/v1/xns.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: temporal/xns/v1/xns.proto @@ -211,11 +211,9 @@ type QueryRequest struct { func (x *QueryRequest) Reset() { *x = QueryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryRequest) String() string { @@ -226,7 +224,7 @@ func (*QueryRequest) ProtoMessage() {} func (x *QueryRequest) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -284,11 +282,9 @@ type RetryPolicy struct { func (x *RetryPolicy) Reset() { *x = RetryPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RetryPolicy) String() string { @@ -299,7 +295,7 @@ func (*RetryPolicy) ProtoMessage() {} func (x *RetryPolicy) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -363,11 +359,9 @@ type SignalRequest struct { func (x *SignalRequest) Reset() { *x = SignalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignalRequest) String() string { @@ -378,7 +372,7 @@ func (*SignalRequest) ProtoMessage() {} func (x *SignalRequest) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -442,11 +436,9 @@ type StartWorkflowOptions struct { func (x *StartWorkflowOptions) Reset() { *x = StartWorkflowOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StartWorkflowOptions) String() string { @@ -457,7 +449,7 @@ func (*StartWorkflowOptions) ProtoMessage() {} func (x *StartWorkflowOptions) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -569,11 +561,9 @@ type UpdateRequest struct { func (x *UpdateRequest) Reset() { *x = UpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateRequest) String() string { @@ -584,7 +574,7 @@ func (*UpdateRequest) ProtoMessage() {} func (x *UpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -636,11 +626,9 @@ type UpdateWorkflowWithOptionsRequest struct { func (x *UpdateWorkflowWithOptionsRequest) Reset() { *x = UpdateWorkflowWithOptionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateWorkflowWithOptionsRequest) String() string { @@ -651,7 +639,7 @@ func (*UpdateWorkflowWithOptionsRequest) ProtoMessage() {} func (x *UpdateWorkflowWithOptionsRequest) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -725,11 +713,9 @@ type WorkflowRequest struct { func (x *WorkflowRequest) Reset() { *x = WorkflowRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_temporal_xns_v1_xns_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_temporal_xns_v1_xns_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowRequest) String() string { @@ -740,7 +726,7 @@ func (*WorkflowRequest) ProtoMessage() {} func (x *WorkflowRequest) ProtoReflect() protoreflect.Message { mi := &file_temporal_xns_v1_xns_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1073,92 +1059,6 @@ func file_temporal_xns_v1_xns_proto_init() { if File_temporal_xns_v1_xns_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_temporal_xns_v1_xns_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*QueryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*RetryPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SignalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*StartWorkflowOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*UpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*UpdateWorkflowWithOptionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_temporal_xns_v1_xns_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/test/expression/v1/expression.pb.go b/gen/test/expression/v1/expression.pb.go index 4c433f1a..c0617846 100644 --- a/gen/test/expression/v1/expression.pb.go +++ b/gen/test/expression/v1/expression.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: test/expression/v1/expression.proto @@ -39,11 +39,9 @@ type Request struct { func (x *Request) Reset() { *x = Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_expression_v1_expression_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_expression_v1_expression_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request) String() string { @@ -54,7 +52,7 @@ func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { mi := &file_test_expression_v1_expression_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -137,11 +135,9 @@ type Request_OuterNested struct { func (x *Request_OuterNested) Reset() { *x = Request_OuterNested{} - if protoimpl.UnsafeEnabled { - mi := &file_test_expression_v1_expression_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_expression_v1_expression_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request_OuterNested) String() string { @@ -152,7 +148,7 @@ func (*Request_OuterNested) ProtoMessage() {} func (x *Request_OuterNested) ProtoReflect() protoreflect.Message { mi := &file_test_expression_v1_expression_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -198,11 +194,9 @@ type Request_OuterNested_InnerNested struct { func (x *Request_OuterNested_InnerNested) Reset() { *x = Request_OuterNested_InnerNested{} - if protoimpl.UnsafeEnabled { - mi := &file_test_expression_v1_expression_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_expression_v1_expression_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request_OuterNested_InnerNested) String() string { @@ -213,7 +207,7 @@ func (*Request_OuterNested_InnerNested) ProtoMessage() {} func (x *Request_OuterNested_InnerNested) ProtoReflect() protoreflect.Message { mi := &file_test_expression_v1_expression_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -338,44 +332,6 @@ func file_test_expression_v1_expression_proto_init() { if File_test_expression_v1_expression_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_test_expression_v1_expression_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_expression_v1_expression_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Request_OuterNested); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_expression_v1_expression_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Request_OuterNested_InnerNested); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/test/option/v1/option.pb.go b/gen/test/option/v1/option.pb.go index 400daf6e..49a1b039 100644 --- a/gen/test/option/v1/option.pb.go +++ b/gen/test/option/v1/option.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: test/option/v1/option.proto @@ -32,11 +32,9 @@ type ActivityWithInputRequest struct { func (x *ActivityWithInputRequest) Reset() { *x = ActivityWithInputRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_option_v1_option_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_option_v1_option_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityWithInputRequest) String() string { @@ -47,7 +45,7 @@ func (*ActivityWithInputRequest) ProtoMessage() {} func (x *ActivityWithInputRequest) ProtoReflect() protoreflect.Message { mi := &file_test_option_v1_option_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,11 +77,9 @@ type ActivityWithInputResponse struct { func (x *ActivityWithInputResponse) Reset() { *x = ActivityWithInputResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_test_option_v1_option_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_option_v1_option_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityWithInputResponse) String() string { @@ -94,7 +90,7 @@ func (*ActivityWithInputResponse) ProtoMessage() {} func (x *ActivityWithInputResponse) ProtoReflect() protoreflect.Message { mi := &file_test_option_v1_option_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -126,11 +122,9 @@ type UpdateWithInputRequest struct { func (x *UpdateWithInputRequest) Reset() { *x = UpdateWithInputRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_option_v1_option_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_option_v1_option_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateWithInputRequest) String() string { @@ -141,7 +135,7 @@ func (*UpdateWithInputRequest) ProtoMessage() {} func (x *UpdateWithInputRequest) ProtoReflect() protoreflect.Message { mi := &file_test_option_v1_option_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -173,11 +167,9 @@ type WorkflowWithInputRequest struct { func (x *WorkflowWithInputRequest) Reset() { *x = WorkflowWithInputRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_option_v1_option_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_option_v1_option_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkflowWithInputRequest) String() string { @@ -188,7 +180,7 @@ func (*WorkflowWithInputRequest) ProtoMessage() {} func (x *WorkflowWithInputRequest) ProtoReflect() protoreflect.Message { mi := &file_test_option_v1_option_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -321,56 +313,6 @@ func file_test_option_v1_option_proto_init() { if File_test_option_v1_option_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_test_option_v1_option_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ActivityWithInputRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_option_v1_option_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ActivityWithInputResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_option_v1_option_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*UpdateWithInputRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_option_v1_option_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*WorkflowWithInputRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/test/option/v1/option_temporal.pb.go b/gen/test/option/v1/option_temporal.pb.go index 13236277..e311a6cf 100644 --- a/gen/test/option/v1/option_temporal.pb.go +++ b/gen/test/option/v1/option_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/test/option/v1/optionv1xns/option_xns_temporal.pb.go b/gen/test/option/v1/optionv1xns/option_xns_temporal.pb.go index 1a7b191b..74604970 100644 --- a/gen/test/option/v1/optionv1xns/option_xns_temporal.pb.go +++ b/gen/test/option/v1/optionv1xns/option_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/test/simple/common/v1/common.pb.go b/gen/test/simple/common/v1/common.pb.go index ca46e4ed..d3318918 100644 --- a/gen/test/simple/common/v1/common.pb.go +++ b/gen/test/simple/common/v1/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: test/simple/common/v1/common.proto @@ -80,11 +80,9 @@ type PaginatedRequest struct { func (x *PaginatedRequest) Reset() { *x = PaginatedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_common_v1_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_common_v1_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PaginatedRequest) String() string { @@ -95,7 +93,7 @@ func (*PaginatedRequest) ProtoMessage() {} func (x *PaginatedRequest) ProtoReflect() protoreflect.Message { mi := &file_test_simple_common_v1_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,11 +133,9 @@ type PaginatedResponse struct { func (x *PaginatedResponse) Reset() { *x = PaginatedResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_common_v1_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_common_v1_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PaginatedResponse) String() string { @@ -150,7 +146,7 @@ func (*PaginatedResponse) ProtoMessage() {} func (x *PaginatedResponse) ProtoReflect() protoreflect.Message { mi := &file_test_simple_common_v1_common_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -255,32 +251,6 @@ func file_test_simple_common_v1_common_proto_init() { if File_test_simple_common_v1_common_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_test_simple_common_v1_common_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*PaginatedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_common_v1_common_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*PaginatedResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/test/simple/v1/simple.pb.go b/gen/test/simple/v1/simple.pb.go index bffe335f..a8fbb6aa 100644 --- a/gen/test/simple/v1/simple.pb.go +++ b/gen/test/simple/v1/simple.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: test/simple/v1/simple.proto @@ -87,11 +87,9 @@ type SomeWorkflow1Request struct { func (x *SomeWorkflow1Request) Reset() { *x = SomeWorkflow1Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeWorkflow1Request) String() string { @@ -102,7 +100,7 @@ func (*SomeWorkflow1Request) ProtoMessage() {} func (x *SomeWorkflow1Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -141,11 +139,9 @@ type SomeWorkflow1Response struct { func (x *SomeWorkflow1Response) Reset() { *x = SomeWorkflow1Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeWorkflow1Response) String() string { @@ -156,7 +152,7 @@ func (*SomeWorkflow1Response) ProtoMessage() {} func (x *SomeWorkflow1Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -189,11 +185,9 @@ type SomeWorkflow3Request struct { func (x *SomeWorkflow3Request) Reset() { *x = SomeWorkflow3Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeWorkflow3Request) String() string { @@ -204,7 +198,7 @@ func (*SomeWorkflow3Request) ProtoMessage() {} func (x *SomeWorkflow3Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -243,11 +237,9 @@ type SomeActivity2Request struct { func (x *SomeActivity2Request) Reset() { *x = SomeActivity2Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeActivity2Request) String() string { @@ -258,7 +250,7 @@ func (*SomeActivity2Request) ProtoMessage() {} func (x *SomeActivity2Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -290,11 +282,9 @@ type SomeActivity3Request struct { func (x *SomeActivity3Request) Reset() { *x = SomeActivity3Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeActivity3Request) String() string { @@ -305,7 +295,7 @@ func (*SomeActivity3Request) ProtoMessage() {} func (x *SomeActivity3Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -337,11 +327,9 @@ type SomeActivity3Response struct { func (x *SomeActivity3Response) Reset() { *x = SomeActivity3Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeActivity3Response) String() string { @@ -352,7 +340,7 @@ func (*SomeActivity3Response) ProtoMessage() {} func (x *SomeActivity3Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -384,11 +372,9 @@ type SomeQuery1Response struct { func (x *SomeQuery1Response) Reset() { *x = SomeQuery1Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeQuery1Response) String() string { @@ -399,7 +385,7 @@ func (*SomeQuery1Response) ProtoMessage() {} func (x *SomeQuery1Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -431,11 +417,9 @@ type SomeQuery2Request struct { func (x *SomeQuery2Request) Reset() { *x = SomeQuery2Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeQuery2Request) String() string { @@ -446,7 +430,7 @@ func (*SomeQuery2Request) ProtoMessage() {} func (x *SomeQuery2Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -478,11 +462,9 @@ type SomeQuery2Response struct { func (x *SomeQuery2Response) Reset() { *x = SomeQuery2Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeQuery2Response) String() string { @@ -493,7 +475,7 @@ func (*SomeQuery2Response) ProtoMessage() {} func (x *SomeQuery2Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -525,11 +507,9 @@ type SomeSignal2Request struct { func (x *SomeSignal2Request) Reset() { *x = SomeSignal2Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeSignal2Request) String() string { @@ -540,7 +520,7 @@ func (*SomeSignal2Request) ProtoMessage() {} func (x *SomeSignal2Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -572,11 +552,9 @@ type SomeSignal3Request struct { func (x *SomeSignal3Request) Reset() { *x = SomeSignal3Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeSignal3Request) String() string { @@ -587,7 +565,7 @@ func (*SomeSignal3Request) ProtoMessage() {} func (x *SomeSignal3Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -619,11 +597,9 @@ type SomeSignal3Response struct { func (x *SomeSignal3Response) Reset() { *x = SomeSignal3Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeSignal3Response) String() string { @@ -634,7 +610,7 @@ func (*SomeSignal3Response) ProtoMessage() {} func (x *SomeSignal3Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -666,11 +642,9 @@ type SomeUpdate1Request struct { func (x *SomeUpdate1Request) Reset() { *x = SomeUpdate1Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeUpdate1Request) String() string { @@ -681,7 +655,7 @@ func (*SomeUpdate1Request) ProtoMessage() {} func (x *SomeUpdate1Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -713,11 +687,9 @@ type SomeUpdate1Response struct { func (x *SomeUpdate1Response) Reset() { *x = SomeUpdate1Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeUpdate1Response) String() string { @@ -728,7 +700,7 @@ func (*SomeUpdate1Response) ProtoMessage() {} func (x *SomeUpdate1Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -787,11 +759,9 @@ type OtherWorkflowRequest struct { func (x *OtherWorkflowRequest) Reset() { *x = OtherWorkflowRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherWorkflowRequest) String() string { @@ -802,7 +772,7 @@ func (*OtherWorkflowRequest) ProtoMessage() {} func (x *OtherWorkflowRequest) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1143,11 +1113,9 @@ type OtherWorkflowResponse struct { func (x *OtherWorkflowResponse) Reset() { *x = OtherWorkflowResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherWorkflowResponse) String() string { @@ -1158,7 +1126,7 @@ func (*OtherWorkflowResponse) ProtoMessage() {} func (x *OtherWorkflowResponse) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1183,11 +1151,9 @@ type OtherQueryResponse struct { func (x *OtherQueryResponse) Reset() { *x = OtherQueryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherQueryResponse) String() string { @@ -1198,7 +1164,7 @@ func (*OtherQueryResponse) ProtoMessage() {} func (x *OtherQueryResponse) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1230,11 +1196,9 @@ type OtherSignalRequest struct { func (x *OtherSignalRequest) Reset() { *x = OtherSignalRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherSignalRequest) String() string { @@ -1245,7 +1209,7 @@ func (*OtherSignalRequest) ProtoMessage() {} func (x *OtherSignalRequest) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1277,11 +1241,9 @@ type OtherUpdateRequest struct { func (x *OtherUpdateRequest) Reset() { *x = OtherUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherUpdateRequest) String() string { @@ -1292,7 +1254,7 @@ func (*OtherUpdateRequest) ProtoMessage() {} func (x *OtherUpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1322,11 +1284,9 @@ type OtherUpdateResponse struct { func (x *OtherUpdateResponse) Reset() { *x = OtherUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherUpdateResponse) String() string { @@ -1337,7 +1297,7 @@ func (*OtherUpdateResponse) ProtoMessage() {} func (x *OtherUpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1362,11 +1322,9 @@ type Foo struct { func (x *Foo) Reset() { *x = Foo{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Foo) String() string { @@ -1377,7 +1335,7 @@ func (*Foo) ProtoMessage() {} func (x *Foo) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1409,11 +1367,9 @@ type Qux struct { func (x *Qux) Reset() { *x = Qux{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Qux) String() string { @@ -1424,7 +1380,7 @@ func (*Qux) ProtoMessage() {} func (x *Qux) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1456,11 +1412,9 @@ type WhatRequest struct { func (x *WhatRequest) Reset() { *x = WhatRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WhatRequest) String() string { @@ -1471,7 +1425,7 @@ func (*WhatRequest) ProtoMessage() {} func (x *WhatRequest) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1501,11 +1455,9 @@ type LonelyActivity1Request struct { func (x *LonelyActivity1Request) Reset() { *x = LonelyActivity1Request{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LonelyActivity1Request) String() string { @@ -1516,7 +1468,7 @@ func (*LonelyActivity1Request) ProtoMessage() {} func (x *LonelyActivity1Request) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1539,11 +1491,9 @@ type LonelyActivity1Response struct { func (x *LonelyActivity1Response) Reset() { *x = LonelyActivity1Response{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LonelyActivity1Response) String() string { @@ -1554,7 +1504,7 @@ func (*LonelyActivity1Response) ProtoMessage() {} func (x *LonelyActivity1Response) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1577,11 +1527,9 @@ type SomeDeprecatedMessage struct { func (x *SomeDeprecatedMessage) Reset() { *x = SomeDeprecatedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SomeDeprecatedMessage) String() string { @@ -1592,7 +1540,7 @@ func (*SomeDeprecatedMessage) ProtoMessage() {} func (x *SomeDeprecatedMessage) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1617,11 +1565,9 @@ type OtherWorkflowRequest_Bar struct { func (x *OtherWorkflowRequest_Bar) Reset() { *x = OtherWorkflowRequest_Bar{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherWorkflowRequest_Bar) String() string { @@ -1632,7 +1578,7 @@ func (*OtherWorkflowRequest_Bar) ProtoMessage() {} func (x *OtherWorkflowRequest_Bar) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1664,11 +1610,9 @@ type OtherWorkflowRequest_Baz struct { func (x *OtherWorkflowRequest_Baz) Reset() { *x = OtherWorkflowRequest_Baz{} - if protoimpl.UnsafeEnabled { - mi := &file_test_simple_v1_simple_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_simple_v1_simple_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherWorkflowRequest_Baz) String() string { @@ -1679,7 +1623,7 @@ func (*OtherWorkflowRequest_Baz) ProtoMessage() {} func (x *OtherWorkflowRequest_Baz) ProtoReflect() protoreflect.Message { mi := &file_test_simple_v1_simple_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2274,344 +2218,6 @@ func file_test_simple_v1_simple_proto_init() { if File_test_simple_v1_simple_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_test_simple_v1_simple_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*SomeWorkflow1Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SomeWorkflow1Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SomeWorkflow3Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*SomeActivity2Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*SomeActivity3Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SomeActivity3Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*SomeQuery1Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*SomeQuery2Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*SomeQuery2Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SomeSignal2Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*SomeSignal3Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*SomeSignal3Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*SomeUpdate1Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*SomeUpdate1Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*OtherWorkflowRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*OtherWorkflowResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*OtherQueryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*OtherSignalRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*OtherUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*OtherUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*Foo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*Qux); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*WhatRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*LonelyActivity1Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*LonelyActivity1Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*SomeDeprecatedMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*OtherWorkflowRequest_Bar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_simple_v1_simple_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*OtherWorkflowRequest_Baz); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_test_simple_v1_simple_proto_msgTypes[14].OneofWrappers = []any{ (*OtherWorkflowRequest_Foo)(nil), (*OtherWorkflowRequest_Bar_)(nil), diff --git a/gen/test/simple/v1/simple_temporal.pb.go b/gen/test/simple/v1/simple_temporal.pb.go index 518d54c4..f4ea8f3c 100644 --- a/gen/test/simple/v1/simple_temporal.pb.go +++ b/gen/test/simple/v1/simple_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // @@ -4843,7 +4843,7 @@ func (c *TestSimpleClient) SomeWorkflow2WithSomeSignal1(ctx context.Context, opt // SomeWorkflow2WithSomeSignal1Async sends a(n) mycompany.simple.Simple.SomeSignal1 signal to a(n) mycompany.simple.SomeWorkflow2 workflow, starting it if necessary func (c *TestSimpleClient) SomeWorkflow2WithSomeSignal1Async(ctx context.Context, opts ...*SomeWorkflow2Options) (SomeWorkflow2Run, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SomeSignal1(ctx, "", "") + c.env.SignalWorkflow(SomeSignal1SignalName, nil) }, 0) return c.SomeWorkflow2Async(ctx, opts...) } @@ -4888,7 +4888,7 @@ func (c *TestSimpleClient) SomeWorkflow3WithSomeSignal2(ctx context.Context, req // SomeWorkflow3WithSomeSignal2Async sends a(n) mycompany.simple.Simple.SomeSignal2 signal to a(n) mycompany.simple.Simple.SomeWorkflow3 workflow, starting it if necessary func (c *TestSimpleClient) SomeWorkflow3WithSomeSignal2Async(ctx context.Context, req *SomeWorkflow3Request, signal *SomeSignal2Request, opts ...*SomeWorkflow3Options) (SomeWorkflow3Run, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SomeSignal2(ctx, "", "", signal) + c.env.SignalWorkflow(SomeSignal2SignalName, signal) }, 0) return c.SomeWorkflow3Async(ctx, req, opts...) } @@ -12092,7 +12092,7 @@ func (c *TestDeprecatedClient) SomeDeprecatedWorkflow1WithSomeDeprecatedSignal1( // SomeDeprecatedWorkflow1WithSomeDeprecatedSignal1Async sends a(n) mycompany.simple.Deprecated.SomeDeprecatedSignal1 signal to a(n) mycompany.simple.Deprecated.SomeDeprecatedWorkflow1 workflow, starting it if necessary func (c *TestDeprecatedClient) SomeDeprecatedWorkflow1WithSomeDeprecatedSignal1Async(ctx context.Context, req *SomeDeprecatedMessage, signal *SomeDeprecatedMessage, opts ...*SomeDeprecatedWorkflow1Options) (SomeDeprecatedWorkflow1Run, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SomeDeprecatedSignal1(ctx, "", "", signal) + c.env.SignalWorkflow(SomeDeprecatedSignal1SignalName, signal) }, 0) return c.SomeDeprecatedWorkflow1Async(ctx, req, opts...) } @@ -12137,7 +12137,7 @@ func (c *TestDeprecatedClient) SomeDeprecatedWorkflow2WithSomeDeprecatedSignal2( // SomeDeprecatedWorkflow2WithSomeDeprecatedSignal2Async sends a(n) mycompany.simple.Deprecated.SomeDeprecatedSignal2 signal to a(n) mycompany.simple.Deprecated.SomeDeprecatedWorkflow2 workflow, starting it if necessary func (c *TestDeprecatedClient) SomeDeprecatedWorkflow2WithSomeDeprecatedSignal2Async(ctx context.Context, req *SomeDeprecatedMessage, signal *SomeDeprecatedMessage, opts ...*SomeDeprecatedWorkflow2Options) (SomeDeprecatedWorkflow2Run, error) { c.env.RegisterDelayedCallback(func() { - _ = c.SomeDeprecatedSignal2(ctx, "", "", signal) + c.env.SignalWorkflow(SomeDeprecatedSignal2SignalName, signal) }, 0) return c.SomeDeprecatedWorkflow2Async(ctx, req, opts...) } diff --git a/gen/test/simple/v1/v1xns/simple_xns_temporal.pb.go b/gen/test/simple/v1/v1xns/simple_xns_temporal.pb.go index f92b52f9..4dd77d5d 100644 --- a/gen/test/simple/v1/v1xns/simple_xns_temporal.pb.go +++ b/gen/test/simple/v1/v1xns/simple_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/test/xnserr/v1/xnserr.pb.go b/gen/test/xnserr/v1/xnserr.pb.go index 0b83d4e5..e4420b09 100644 --- a/gen/test/xnserr/v1/xnserr.pb.go +++ b/gen/test/xnserr/v1/xnserr.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc (unknown) // source: test/xnserr/v1/xnserr.proto @@ -101,11 +101,9 @@ type CallSleepRequest struct { func (x *CallSleepRequest) Reset() { *x = CallSleepRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallSleepRequest) String() string { @@ -116,7 +114,7 @@ func (*CallSleepRequest) ProtoMessage() {} func (x *CallSleepRequest) ProtoReflect() protoreflect.Message { mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -170,11 +168,9 @@ type SleepRequest struct { func (x *SleepRequest) Reset() { *x = SleepRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SleepRequest) String() string { @@ -185,7 +181,7 @@ func (*SleepRequest) ProtoMessage() {} func (x *SleepRequest) ProtoReflect() protoreflect.Message { mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -227,11 +223,9 @@ type Failure struct { func (x *Failure) Reset() { *x = Failure{} - if protoimpl.UnsafeEnabled { - mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Failure) String() string { @@ -242,7 +236,7 @@ func (*Failure) ProtoMessage() {} func (x *Failure) ProtoReflect() protoreflect.Message { mi := &file_test_xnserr_v1_xnserr_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -428,44 +422,6 @@ func file_test_xnserr_v1_xnserr_proto_init() { if File_test_xnserr_v1_xnserr_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_test_xnserr_v1_xnserr_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CallSleepRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_xnserr_v1_xnserr_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SleepRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_test_xnserr_v1_xnserr_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Failure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gen/test/xnserr/v1/xnserr_temporal.pb.go b/gen/test/xnserr/v1/xnserr_temporal.pb.go index 298f44fe..ee0179c1 100644 --- a/gen/test/xnserr/v1/xnserr_temporal.pb.go +++ b/gen/test/xnserr/v1/xnserr_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/gen/test/xnserr/v1/xnserrv1xns/xnserr_xns_temporal.pb.go b/gen/test/xnserr/v1/xnserrv1xns/xnserr_xns_temporal.pb.go index 8bd6dd0f..3f577837 100644 --- a/gen/test/xnserr/v1/xnserrv1xns/xnserr_xns_temporal.pb.go +++ b/gen/test/xnserr/v1/xnserrv1xns/xnserr_xns_temporal.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go_temporal. DO NOT EDIT. // versions: // -// protoc-gen-go_temporal 1.14.3-next (974fdc3d78b6359d0e967899ac581d33b6a0bc71) +// protoc-gen-go_temporal 1.14.4-next (0db6561a5e4a1985a1d33f8558a2b02da60e9bac) // go go1.22.2 // protoc (unknown) // diff --git a/internal/plugin/cli.go b/internal/plugin/cli.go index df19dbee..48fb57f0 100644 --- a/internal/plugin/cli.go +++ b/internal/plugin/cli.go @@ -1187,7 +1187,7 @@ func (svc *Manifest) genCliWorkflowWithSignalCommand(cmds *g.Group, workflow, si if hasInput { inputName := svc.getMessageName(method.Input) unmarshaller := fmt.Sprintf("UnmarshalCliFlagsTo%s", svc.toCamel(inputName)) - fn.List(g.Id("req"), g.Err()).Op(":=").Id(unmarshaller).Call(g.Id("cmd")) + fn.List(g.Id("req"), g.Err()).Op(":=").Qual(svc.goImportPathForMethod(workflow), unmarshaller).Call(g.Id("cmd")) fn.If(g.Err().Op("!=").Nil()).Block( g.Return(g.Qual("fmt", "Errorf").Call(g.Lit("error unmarshalling request: %w"), g.Err())), ) @@ -1197,7 +1197,7 @@ func (svc *Manifest) genCliWorkflowWithSignalCommand(cmds *g.Group, workflow, si if hasSignalInput { inputName := svc.getMessageName(handler.Input) unmarshaller := fmt.Sprintf("UnmarshalCliFlagsTo%s", svc.toCamel(inputName)) - fn.List(g.Id("signal"), g.Err()).Op(":=").Id(unmarshaller).Call(g.Id("cmd")) + fn.List(g.Id("signal"), g.Err()).Op(":=").Qual(svc.goImportPathForMethod(signal), unmarshaller).Call(g.Id("cmd")) fn.If(g.Err().Op("!=").Nil()).Block( g.Return(g.Qual("fmt", "Errorf").Call(g.Lit("error unmarshalling signal: %w"), g.Err())), ) @@ -1214,7 +1214,7 @@ func (svc *Manifest) genCliWorkflowWithSignalCommand(cmds *g.Group, workflow, si } }) fn.If(g.Err().Op("!=").Nil()).Block( - g.Return(g.Qual("fmt", "Errorf").Call(g.Lit("error starting %s workflow with %s signal: %w"), g.Id(svc.toCamel("%sWorkflowName", workflow)), g.Id(svc.toCamel("%sSignalName", signal)), g.Err())), + g.Return(g.Qual("fmt", "Errorf").Call(g.Lit("error starting %s workflow with %s signal: %w"), g.Id(svc.toCamel("%sWorkflowName", workflow)), g.Qual(svc.goImportPathForMethod(signal), svc.toCamel("%sSignalName", signal)), g.Err())), ) // handle async invocation diff --git a/internal/plugin/client.go b/internal/plugin/client.go index 8ee4047f..f45b5888 100644 --- a/internal/plugin/client.go +++ b/internal/plugin/client.go @@ -255,7 +255,7 @@ func (svc *Manifest) genClientImplSignalWithStartAsyncMethod(f *g.File, workflow fn.Id("run").Op(",").Err().Op(":=").Id("c").Dot("client").Dot("SignalWithStartWorkflow").CallFunc(func(args *g.Group) { args.Id("ctx") args.Id("opts").Dot("ID") - args.Id(svc.toCamel("%sSignalName", signal)) + args.Qual(svc.goImportPathForMethod(signal), svc.toCamel("%sSignalName", signal)) if hasSignalInput { args.Id("signal") } else { diff --git a/internal/plugin/parse.go b/internal/plugin/parse.go index 3b5d7c98..0d063af5 100644 --- a/internal/plugin/parse.go +++ b/internal/plugin/parse.go @@ -68,6 +68,7 @@ type Manifest struct { patchesByRef map[protoreflect.FullName]map[temporalv1.Patch_Version]temporalv1.Patch_Mode queriesOrdered []protoreflect.FullName queries map[protoreflect.FullName]*temporalv1.QueryOptions + serviceFiles map[protoreflect.FullName]*protogen.File serviceOptions map[protoreflect.FullName]*temporalv1.ServiceOptions signalsOrdered []protoreflect.FullName signals map[protoreflect.FullName]*temporalv1.SignalOptions @@ -88,6 +89,7 @@ func parse(p *Plugin) (*Manifest, error) { patches: make(map[temporalv1.Patch_Version]temporalv1.Patch_Mode), patchesByRef: make(map[protoreflect.FullName]map[temporalv1.Patch_Version]temporalv1.Patch_Mode), queries: make(map[protoreflect.FullName]*temporalv1.QueryOptions), + serviceFiles: make(map[protoreflect.FullName]*protogen.File), serviceOptions: make(map[protoreflect.FullName]*temporalv1.ServiceOptions), signals: make(map[protoreflect.FullName]*temporalv1.SignalOptions), updates: make(map[protoreflect.FullName]*temporalv1.UpdateOptions), @@ -117,6 +119,7 @@ func parse(p *Plugin) (*Manifest, error) { } for _, service := range file.Services { + svc.serviceFiles[service.Desc.FullName()] = file if opts, ok := proto.GetExtension(service.Desc.Options(), temporalv1.E_Service).(*temporalv1.ServiceOptions); ok && opts != nil { svc.opts = opts svc.serviceOptions[service.Desc.FullName()] = opts @@ -520,6 +523,15 @@ func (svc *Manifest) getMessageName(msg *protogen.Message) string { return name } +func (svc *Manifest) goImportPathForMethod(name protoreflect.FullName) string { + method := svc.methods[name] + file := svc.serviceFiles[method.Parent.Desc.FullName()] + if file == nil { + return "" + } + return string(file.GoImportPath) +} + func (svc *Manifest) patchMode(pv temporalv1.Patch_Version, ref protoreflect.FullName) temporalv1.Patch_Mode { patchIndex, ok := svc.patchesByRef[ref] if ok { diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index 80bc32ff..e763d2ef 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -2,6 +2,7 @@ package plugin import ( "fmt" + "io" "runtime" "strings" @@ -36,6 +37,7 @@ type Plugin struct { Version string cfg *Config flags *pflag.FlagSet + stderr io.WriteCloser } func New(commit, version string) *Plugin { @@ -44,13 +46,13 @@ func New(commit, version string) *Plugin { flags := pflag.NewFlagSet("plugin", pflag.ExitOnError) flags.BoolVar(&cfg.CliEnabled, "cli-enabled", false, "enable cli generation") flags.BoolVar(&cfg.CliCategories, "cli-categories", true, "enable cli categories") - flags.StringVar(&cfg.Patches, "patches", "", "comma-delimited string of [_] (e.g. --patches=64_MARKER,65_REMOVED)") flags.BoolVar(&cfg.DisableWorkflowInputRename, "disable-workflow-input-rename", false, "disable renaming of \"WorkflowInput\"") flags.StringVar(&cfg.DocsOut, "docs-out", "", "docs output path") flags.StringVar(&cfg.DocsTemplate, "docs-template", "basic", "built-in template name or path to custom template file") flags.BoolVar(&cfg.EnableCodec, "enable-codec", false, "enables experimental codec support") flags.BoolVar(&cfg.EnablePatchSupport, "enable-patch-support", false, "enables support for alta/protopatch renaming") flags.BoolVar(&cfg.EnableXNS, "enable-xns", false, "enable experimental cross-namespace workflow client") + flags.StringVar(&cfg.Patches, "patches", "", "comma-delimited string of [_] (e.g. --patches=64_MARKER,65_REMOVED)") flags.BoolVar(&cfg.WorkflowUpdateEnabled, "workflow-update-enabled", false, "enable experimental workflow update") return &Plugin{ @@ -67,7 +69,7 @@ func (p *Plugin) Param(key, value string) error { } // Run defines the plugin entrypoint -func (p *Plugin) Run(plugin *protogen.Plugin) error { +func (p *Plugin) Run(plugin *protogen.Plugin) (err error) { p.Plugin = plugin services, err := parse(p) if err != nil { diff --git a/internal/plugin/testclient.go b/internal/plugin/testclient.go index 44b940e4..faba915d 100644 --- a/internal/plugin/testclient.go +++ b/internal/plugin/testclient.go @@ -471,7 +471,7 @@ func (svc *Manifest) genTestClientImplWorkflowWithSignalMethod(f *g.File, workfl g.Id("c").Dot("env").Dot("RegisterDelayedCallback").Call( g.Func().Params().Block( g.Id("c").Dot("env").Dot("SignalWorkflow").CallFunc(func(args *g.Group) { - args.Id(svc.toCamel("%sSignalName", signal)) + args.Qual(svc.goImportPathForMethod(signal), svc.toCamel("%sSignalName", signal)) if hasSignalInput { args.Id("signal") } else { @@ -522,12 +522,12 @@ func (svc *Manifest) genTestClientImplWorkflowWithSignalAsyncMethod(f *g.File, w Block( g.Id("c").Dot("env").Dot("RegisterDelayedCallback").Call( g.Func().Params().Block( - g.Id("_").Op("=").Id("c").Dot(svc.methods[signal].GoName).CallFunc(func(args *g.Group) { - args.Id("ctx") - args.Lit("") - args.Lit("") - if hasInput { + g.Id("c").Dot("env").Dot("SignalWorkflow").CallFunc(func(args *g.Group) { + args.Qual(svc.goImportPathForMethod(signal), svc.toCamel("%sSignalName", signal)) + if hasSignalInput { args.Id("signal") + } else { + args.Nil() } }), ), diff --git a/internal/plugin/xns.go b/internal/plugin/xns.go index 3b2f5320..e696c991 100644 --- a/internal/plugin/xns.go +++ b/internal/plugin/xns.go @@ -902,11 +902,11 @@ func (svc *Manifest) genXNSRegisterActivities(f *g.File) { continue } fn.If( - g.Id("name").Op(":=").Id(svc.toLowerCamel("%sOptions", svc.GoName)).Dot("filterActivity").Call(g.Lit(fmt.Sprintf("%s.%s", string(svc.Service.Desc.FullName()), svc.toCamel("%sWith%s", workflow, signal.GetRef())))), + g.Id("name").Op(":=").Id(svc.toLowerCamel("%sOptions", svc.GoName)).Dot("filterActivity").Call(g.Lit(fmt.Sprintf("%s.%s", string(svc.Service.Desc.FullName()), svc.toCamel("%sWith%s", workflow, getFullyQualifiedRef(workflow, signal.GetRef()))))), g.Id("name").Op("!=").Lit(""), ).Block( g.Id("r").Dot("RegisterActivityWithOptions").Call( - g.Id("a").Dot(svc.toCamel("%sWith%s", workflow, signal.GetRef())), + g.Id("a").Dot(svc.toCamel("%sWith%s", workflow, getFullyQualifiedRef(workflow, signal.GetRef()))), g.Qual(activityPkg, "RegisterOptions").Values( g.Id("Name").Op(":").Id("name"), ), diff --git a/justfile b/justfile index e6207c1e..ad4c6cc4 100644 --- a/justfile +++ b/justfile @@ -46,14 +46,22 @@ install: #!/usr/bin/env bash set -euo pipefail goreleaser build --clean --single-target --snapshot + + executable="" if [ "{{ os() }}" = "macos" ]; then if [ "{{ arch() }}" = "aarch64" ]; then - sudo cp ./dist/protoc-gen-go_temporal_darwin_arm64/protoc-gen-go_temporal /usr/local/bin + executable="./dist/protoc-gen-go_temporal_darwin_arm64_v8.0/protoc-gen-go_temporal" else - sudo cp ./dist/protoc-gen-go_temporal_darwin_amd64_v1/protoc-gen-go_temporal /usr/local/bin/ + executable="./dist/protoc-gen-go_temporal_darwin_amd64_v1/protoc-gen-go_temporal" fi else - sudo cp ./dist/protoc-gen-go_temporal_linux_amd64_v1/protoc-gen-go_temporal /usr/local/bin/ + executable="./dist/protoc-gen-go_temporal_linux_amd64_v1/protoc-gen-go_temporal" + fi + + if [ -w /usr/local/bin ]; then + cp $executable /usr/local/bin/ + else + sudo cp $executable /usr/local/bin/ fi # launch local temporal server diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_CreateFooRun.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_CreateFooRun.go index e8b48111..e58134eb 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_CreateFooRun.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_CreateFooRun.go @@ -1,12 +1,13 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package examplev1 import ( context "context" + client "go.temporal.io/sdk/client" + examplev1 "github.com/cludden/protoc-gen-go-temporal/gen/example/v1" - internal "go.temporal.io/sdk/client" mock "github.com/stretchr/testify/mock" ) @@ -232,19 +233,19 @@ func (_c *MockCreateFooRun_ID_Call) RunAndReturn(run func() string) *MockCreateF } // Run provides a mock function with given fields: -func (_m *MockCreateFooRun) Run() internal.WorkflowRun { +func (_m *MockCreateFooRun) Run() client.WorkflowRun { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for Run") } - var r0 internal.WorkflowRun - if rf, ok := ret.Get(0).(func() internal.WorkflowRun); ok { + var r0 client.WorkflowRun + if rf, ok := ret.Get(0).(func() client.WorkflowRun); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(internal.WorkflowRun) + r0 = ret.Get(0).(client.WorkflowRun) } } @@ -268,12 +269,12 @@ func (_c *MockCreateFooRun_Run_Call) Run(run func()) *MockCreateFooRun_Run_Call return _c } -func (_c *MockCreateFooRun_Run_Call) Return(_a0 internal.WorkflowRun) *MockCreateFooRun_Run_Call { +func (_c *MockCreateFooRun_Run_Call) Return(_a0 client.WorkflowRun) *MockCreateFooRun_Run_Call { _c.Call.Return(_a0) return _c } -func (_c *MockCreateFooRun_Run_Call) RunAndReturn(run func() internal.WorkflowRun) *MockCreateFooRun_Run_Call { +func (_c *MockCreateFooRun_Run_Call) RunAndReturn(run func() client.WorkflowRun) *MockCreateFooRun_Run_Call { _c.Call.Return(run) return _c } diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_ExampleClient.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_ExampleClient.go index ca94b1ac..01a391a2 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_ExampleClient.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_ExampleClient.go @@ -1,12 +1,13 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package examplev1 import ( context "context" + client "go.temporal.io/sdk/client" + examplev1 "github.com/cludden/protoc-gen-go-temporal/gen/example/v1" - internal "go.temporal.io/sdk/client" mock "github.com/stretchr/testify/mock" ) @@ -481,7 +482,7 @@ func (_c *MockExampleClient_GetFooProgress_Call) RunAndReturn(run func(context.C } // GetUpdateFooProgress provides a mock function with given fields: ctx, req -func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error) { +func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req client.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error) { ret := _m.Called(ctx, req) if len(ret) == 0 { @@ -490,10 +491,10 @@ func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req inter var r0 examplev1.UpdateFooProgressHandle var r1 error - if rf, ok := ret.Get(0).(func(context.Context, internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, client.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)); ok { return rf(ctx, req) } - if rf, ok := ret.Get(0).(func(context.Context, internal.GetWorkflowUpdateHandleOptions) examplev1.UpdateFooProgressHandle); ok { + if rf, ok := ret.Get(0).(func(context.Context, client.GetWorkflowUpdateHandleOptions) examplev1.UpdateFooProgressHandle); ok { r0 = rf(ctx, req) } else { if ret.Get(0) != nil { @@ -501,7 +502,7 @@ func (_m *MockExampleClient) GetUpdateFooProgress(ctx context.Context, req inter } } - if rf, ok := ret.Get(1).(func(context.Context, internal.GetWorkflowUpdateHandleOptions) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, client.GetWorkflowUpdateHandleOptions) error); ok { r1 = rf(ctx, req) } else { r1 = ret.Error(1) @@ -517,14 +518,14 @@ type MockExampleClient_GetUpdateFooProgress_Call struct { // GetUpdateFooProgress is a helper method to define mock.On call // - ctx context.Context -// - req internal.GetWorkflowUpdateHandleOptions +// - req client.GetWorkflowUpdateHandleOptions func (_e *MockExampleClient_Expecter) GetUpdateFooProgress(ctx interface{}, req interface{}) *MockExampleClient_GetUpdateFooProgress_Call { return &MockExampleClient_GetUpdateFooProgress_Call{Call: _e.mock.On("GetUpdateFooProgress", ctx, req)} } -func (_c *MockExampleClient_GetUpdateFooProgress_Call) Run(run func(ctx context.Context, req internal.GetWorkflowUpdateHandleOptions)) *MockExampleClient_GetUpdateFooProgress_Call { +func (_c *MockExampleClient_GetUpdateFooProgress_Call) Run(run func(ctx context.Context, req client.GetWorkflowUpdateHandleOptions)) *MockExampleClient_GetUpdateFooProgress_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(internal.GetWorkflowUpdateHandleOptions)) + run(args[0].(context.Context), args[1].(client.GetWorkflowUpdateHandleOptions)) }) return _c } @@ -534,7 +535,7 @@ func (_c *MockExampleClient_GetUpdateFooProgress_Call) Return(_a0 examplev1.Upda return _c } -func (_c *MockExampleClient_GetUpdateFooProgress_Call) RunAndReturn(run func(context.Context, internal.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)) *MockExampleClient_GetUpdateFooProgress_Call { +func (_c *MockExampleClient_GetUpdateFooProgress_Call) RunAndReturn(run func(context.Context, client.GetWorkflowUpdateHandleOptions) (examplev1.UpdateFooProgressHandle, error)) *MockExampleClient_GetUpdateFooProgress_Call { _c.Call.Return(run) return _c } diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_UpdateFooProgressHandle.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_UpdateFooProgressHandle.go index aa874a75..725f402b 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_UpdateFooProgressHandle.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/example/v1/mock_UpdateFooProgressHandle.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package examplev1 diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/simple/v1/mock_SimpleWorkflowFunctions.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/simple/v1/mock_SimpleWorkflowFunctions.go index 33af9d9a..a0536286 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/simple/v1/mock_SimpleWorkflowFunctions.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/simple/v1/mock_SimpleWorkflowFunctions.go @@ -1,14 +1,14 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package v1 import ( commonv1 "github.com/cludden/protoc-gen-go-temporal/gen/test/simple/common/v1" - internal "go.temporal.io/sdk/workflow" - mock "github.com/stretchr/testify/mock" v1 "github.com/cludden/protoc-gen-go-temporal/gen/test/simple/v1" + + workflow "go.temporal.io/sdk/workflow" ) // MockSimpleWorkflowFunctions is an autogenerated mock type for the SimpleWorkflowFunctions type @@ -25,7 +25,7 @@ func (_m *MockSimpleWorkflowFunctions) EXPECT() *MockSimpleWorkflowFunctions_Exp } // SomeWorkflow1 provides a mock function with given fields: _a0, _a1 -func (_m *MockSimpleWorkflowFunctions) SomeWorkflow1(_a0 internal.Context, _a1 *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error) { +func (_m *MockSimpleWorkflowFunctions) SomeWorkflow1(_a0 workflow.Context, _a1 *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -34,10 +34,10 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow1(_a0 internal.Context, _a1 * var r0 *v1.SomeWorkflow1Response var r1 error - if rf, ok := ret.Get(0).(func(internal.Context, *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error)); ok { + if rf, ok := ret.Get(0).(func(workflow.Context, *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(internal.Context, *v1.SomeWorkflow1Request) *v1.SomeWorkflow1Response); ok { + if rf, ok := ret.Get(0).(func(workflow.Context, *v1.SomeWorkflow1Request) *v1.SomeWorkflow1Response); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { @@ -45,7 +45,7 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow1(_a0 internal.Context, _a1 * } } - if rf, ok := ret.Get(1).(func(internal.Context, *v1.SomeWorkflow1Request) error); ok { + if rf, ok := ret.Get(1).(func(workflow.Context, *v1.SomeWorkflow1Request) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) @@ -60,15 +60,15 @@ type MockSimpleWorkflowFunctions_SomeWorkflow1_Call struct { } // SomeWorkflow1 is a helper method to define mock.On call -// - _a0 internal.Context +// - _a0 workflow.Context // - _a1 *v1.SomeWorkflow1Request func (_e *MockSimpleWorkflowFunctions_Expecter) SomeWorkflow1(_a0 interface{}, _a1 interface{}) *MockSimpleWorkflowFunctions_SomeWorkflow1_Call { return &MockSimpleWorkflowFunctions_SomeWorkflow1_Call{Call: _e.mock.On("SomeWorkflow1", _a0, _a1)} } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow1_Call) Run(run func(_a0 internal.Context, _a1 *v1.SomeWorkflow1Request)) *MockSimpleWorkflowFunctions_SomeWorkflow1_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow1_Call) Run(run func(_a0 workflow.Context, _a1 *v1.SomeWorkflow1Request)) *MockSimpleWorkflowFunctions_SomeWorkflow1_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(internal.Context), args[1].(*v1.SomeWorkflow1Request)) + run(args[0].(workflow.Context), args[1].(*v1.SomeWorkflow1Request)) }) return _c } @@ -78,13 +78,13 @@ func (_c *MockSimpleWorkflowFunctions_SomeWorkflow1_Call) Return(_a0 *v1.SomeWor return _c } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow1_Call) RunAndReturn(run func(internal.Context, *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error)) *MockSimpleWorkflowFunctions_SomeWorkflow1_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow1_Call) RunAndReturn(run func(workflow.Context, *v1.SomeWorkflow1Request) (*v1.SomeWorkflow1Response, error)) *MockSimpleWorkflowFunctions_SomeWorkflow1_Call { _c.Call.Return(run) return _c } // SomeWorkflow2 provides a mock function with given fields: _a0 -func (_m *MockSimpleWorkflowFunctions) SomeWorkflow2(_a0 internal.Context) error { +func (_m *MockSimpleWorkflowFunctions) SomeWorkflow2(_a0 workflow.Context) error { ret := _m.Called(_a0) if len(ret) == 0 { @@ -92,7 +92,7 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow2(_a0 internal.Context) error } var r0 error - if rf, ok := ret.Get(0).(func(internal.Context) error); ok { + if rf, ok := ret.Get(0).(func(workflow.Context) error); ok { r0 = rf(_a0) } else { r0 = ret.Error(0) @@ -107,14 +107,14 @@ type MockSimpleWorkflowFunctions_SomeWorkflow2_Call struct { } // SomeWorkflow2 is a helper method to define mock.On call -// - _a0 internal.Context +// - _a0 workflow.Context func (_e *MockSimpleWorkflowFunctions_Expecter) SomeWorkflow2(_a0 interface{}) *MockSimpleWorkflowFunctions_SomeWorkflow2_Call { return &MockSimpleWorkflowFunctions_SomeWorkflow2_Call{Call: _e.mock.On("SomeWorkflow2", _a0)} } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow2_Call) Run(run func(_a0 internal.Context)) *MockSimpleWorkflowFunctions_SomeWorkflow2_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow2_Call) Run(run func(_a0 workflow.Context)) *MockSimpleWorkflowFunctions_SomeWorkflow2_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(internal.Context)) + run(args[0].(workflow.Context)) }) return _c } @@ -124,13 +124,13 @@ func (_c *MockSimpleWorkflowFunctions_SomeWorkflow2_Call) Return(_a0 error) *Moc return _c } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow2_Call) RunAndReturn(run func(internal.Context) error) *MockSimpleWorkflowFunctions_SomeWorkflow2_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow2_Call) RunAndReturn(run func(workflow.Context) error) *MockSimpleWorkflowFunctions_SomeWorkflow2_Call { _c.Call.Return(run) return _c } // SomeWorkflow3 provides a mock function with given fields: _a0, _a1 -func (_m *MockSimpleWorkflowFunctions) SomeWorkflow3(_a0 internal.Context, _a1 *v1.SomeWorkflow3Request) error { +func (_m *MockSimpleWorkflowFunctions) SomeWorkflow3(_a0 workflow.Context, _a1 *v1.SomeWorkflow3Request) error { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -138,7 +138,7 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow3(_a0 internal.Context, _a1 * } var r0 error - if rf, ok := ret.Get(0).(func(internal.Context, *v1.SomeWorkflow3Request) error); ok { + if rf, ok := ret.Get(0).(func(workflow.Context, *v1.SomeWorkflow3Request) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) @@ -153,15 +153,15 @@ type MockSimpleWorkflowFunctions_SomeWorkflow3_Call struct { } // SomeWorkflow3 is a helper method to define mock.On call -// - _a0 internal.Context +// - _a0 workflow.Context // - _a1 *v1.SomeWorkflow3Request func (_e *MockSimpleWorkflowFunctions_Expecter) SomeWorkflow3(_a0 interface{}, _a1 interface{}) *MockSimpleWorkflowFunctions_SomeWorkflow3_Call { return &MockSimpleWorkflowFunctions_SomeWorkflow3_Call{Call: _e.mock.On("SomeWorkflow3", _a0, _a1)} } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow3_Call) Run(run func(_a0 internal.Context, _a1 *v1.SomeWorkflow3Request)) *MockSimpleWorkflowFunctions_SomeWorkflow3_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow3_Call) Run(run func(_a0 workflow.Context, _a1 *v1.SomeWorkflow3Request)) *MockSimpleWorkflowFunctions_SomeWorkflow3_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(internal.Context), args[1].(*v1.SomeWorkflow3Request)) + run(args[0].(workflow.Context), args[1].(*v1.SomeWorkflow3Request)) }) return _c } @@ -171,13 +171,13 @@ func (_c *MockSimpleWorkflowFunctions_SomeWorkflow3_Call) Return(_a0 error) *Moc return _c } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow3_Call) RunAndReturn(run func(internal.Context, *v1.SomeWorkflow3Request) error) *MockSimpleWorkflowFunctions_SomeWorkflow3_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow3_Call) RunAndReturn(run func(workflow.Context, *v1.SomeWorkflow3Request) error) *MockSimpleWorkflowFunctions_SomeWorkflow3_Call { _c.Call.Return(run) return _c } // SomeWorkflow4 provides a mock function with given fields: _a0, _a1 -func (_m *MockSimpleWorkflowFunctions) SomeWorkflow4(_a0 internal.Context, _a1 *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error) { +func (_m *MockSimpleWorkflowFunctions) SomeWorkflow4(_a0 workflow.Context, _a1 *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -186,10 +186,10 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow4(_a0 internal.Context, _a1 * var r0 *commonv1.PaginatedResponse var r1 error - if rf, ok := ret.Get(0).(func(internal.Context, *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error)); ok { + if rf, ok := ret.Get(0).(func(workflow.Context, *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(internal.Context, *commonv1.PaginatedRequest) *commonv1.PaginatedResponse); ok { + if rf, ok := ret.Get(0).(func(workflow.Context, *commonv1.PaginatedRequest) *commonv1.PaginatedResponse); ok { r0 = rf(_a0, _a1) } else { if ret.Get(0) != nil { @@ -197,7 +197,7 @@ func (_m *MockSimpleWorkflowFunctions) SomeWorkflow4(_a0 internal.Context, _a1 * } } - if rf, ok := ret.Get(1).(func(internal.Context, *commonv1.PaginatedRequest) error); ok { + if rf, ok := ret.Get(1).(func(workflow.Context, *commonv1.PaginatedRequest) error); ok { r1 = rf(_a0, _a1) } else { r1 = ret.Error(1) @@ -212,15 +212,15 @@ type MockSimpleWorkflowFunctions_SomeWorkflow4_Call struct { } // SomeWorkflow4 is a helper method to define mock.On call -// - _a0 internal.Context +// - _a0 workflow.Context // - _a1 *commonv1.PaginatedRequest func (_e *MockSimpleWorkflowFunctions_Expecter) SomeWorkflow4(_a0 interface{}, _a1 interface{}) *MockSimpleWorkflowFunctions_SomeWorkflow4_Call { return &MockSimpleWorkflowFunctions_SomeWorkflow4_Call{Call: _e.mock.On("SomeWorkflow4", _a0, _a1)} } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow4_Call) Run(run func(_a0 internal.Context, _a1 *commonv1.PaginatedRequest)) *MockSimpleWorkflowFunctions_SomeWorkflow4_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow4_Call) Run(run func(_a0 workflow.Context, _a1 *commonv1.PaginatedRequest)) *MockSimpleWorkflowFunctions_SomeWorkflow4_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(internal.Context), args[1].(*commonv1.PaginatedRequest)) + run(args[0].(workflow.Context), args[1].(*commonv1.PaginatedRequest)) }) return _c } @@ -230,7 +230,7 @@ func (_c *MockSimpleWorkflowFunctions_SomeWorkflow4_Call) Return(_a0 *commonv1.P return _c } -func (_c *MockSimpleWorkflowFunctions_SomeWorkflow4_Call) RunAndReturn(run func(internal.Context, *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error)) *MockSimpleWorkflowFunctions_SomeWorkflow4_Call { +func (_c *MockSimpleWorkflowFunctions_SomeWorkflow4_Call) RunAndReturn(run func(workflow.Context, *commonv1.PaginatedRequest) (*commonv1.PaginatedResponse, error)) *MockSimpleWorkflowFunctions_SomeWorkflow4_Call { _c.Call.Return(run) return _c } diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_ServerClient.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_ServerClient.go index 276e2ff4..7f4b3879 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_ServerClient.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_ServerClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package xnserrv1mocks diff --git a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_SleepRun.go b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_SleepRun.go index 9d0d5313..a9b484fb 100644 --- a/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_SleepRun.go +++ b/mocks/github.com/cludden/protoc-gen-go-temporal/gen/test/xnserr/v1/mock_SleepRun.go @@ -1,12 +1,13 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package xnserrv1mocks import ( context "context" + client "go.temporal.io/sdk/client" + mock "github.com/stretchr/testify/mock" - internal "go.temporal.io/sdk/client" ) // MockSleepRun is an autogenerated mock type for the SleepRun type @@ -160,19 +161,19 @@ func (_c *MockSleepRun_ID_Call) RunAndReturn(run func() string) *MockSleepRun_ID } // Run provides a mock function with given fields: -func (_m *MockSleepRun) Run() internal.WorkflowRun { +func (_m *MockSleepRun) Run() client.WorkflowRun { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for Run") } - var r0 internal.WorkflowRun - if rf, ok := ret.Get(0).(func() internal.WorkflowRun); ok { + var r0 client.WorkflowRun + if rf, ok := ret.Get(0).(func() client.WorkflowRun); ok { r0 = rf() } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(internal.WorkflowRun) + r0 = ret.Get(0).(client.WorkflowRun) } } @@ -196,12 +197,12 @@ func (_c *MockSleepRun_Run_Call) Run(run func()) *MockSleepRun_Run_Call { return _c } -func (_c *MockSleepRun_Run_Call) Return(_a0 internal.WorkflowRun) *MockSleepRun_Run_Call { +func (_c *MockSleepRun_Run_Call) Return(_a0 client.WorkflowRun) *MockSleepRun_Run_Call { _c.Call.Return(_a0) return _c } -func (_c *MockSleepRun_Run_Call) RunAndReturn(run func() internal.WorkflowRun) *MockSleepRun_Run_Call { +func (_c *MockSleepRun_Run_Call) RunAndReturn(run func() client.WorkflowRun) *MockSleepRun_Run_Call { _c.Call.Return(run) return _c } diff --git a/mocks/go.temporal.io/sdk/client/mock_Client.go b/mocks/go.temporal.io/sdk/client/mock_Client.go index fa0424c1..7b82d7c0 100644 --- a/mocks/go.temporal.io/sdk/client/mock_Client.go +++ b/mocks/go.temporal.io/sdk/client/mock_Client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package client diff --git a/mocks/go.temporal.io/sdk/clientutils/mock_WorkflowRun.go b/mocks/go.temporal.io/sdk/clientutils/mock_WorkflowRun.go index e74ebcb5..e6e9cf52 100644 --- a/mocks/go.temporal.io/sdk/clientutils/mock_WorkflowRun.go +++ b/mocks/go.temporal.io/sdk/clientutils/mock_WorkflowRun.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package clientutils