130
func (r *ComponentRef) Serialize(
131
registry *Registry,
132
>
) ([]byte, error) {
ref.go
133
>
if r == nil {
134
return nil, nil
135
}
136
137
>
archetypeID, err := r.ArchetypeID(registry)
ref.go
138
>
if err != nil {
139
return nil, err
140
}
141
142
>
pRef := persistencespb.ChasmComponentRef{
ref.go
143
>
NamespaceId: r.NamespaceID,
144
>
BusinessId: r.BusinessID,
145
>
RunId: r.RunID,
146
>
ArchetypeId: archetypeID,
147
>
ExecutionVersionedTransition: r.executionLastUpdateVT,
148
>
ComponentPath: r.componentPath,
149
>
ComponentInitialVersionedTransition: r.componentInitialVT,
150
>
}
151
>
return pRef.Marshal()
152
}
153