func (s *Struct) SetValue(value *structpb.Value) error {
	sv, ok := value.Kind.(*structpb.Value_StructValue)
	if !ok {
		return errors.New("value is not a struct")
	}

	s.value = sv.StructValue
	return nil
}
// SetValue sets the value of the Struct
SetValue sets the value of the Struct
// SetValue sets the value of the Struct
func (s *Struct) SetValue(value *structpb.Value) error {
	sv, ok := value.Kind.(*structpb.Value_StructValue)
	if !ok {
		return errors.New("value is not a struct")
	}
	s.value = sv.StructValue
	return nil
}
func ( s * Struct ) SetValue ( value * structpb . Value ) error { sv , ok := value . Kind . ( * structpb . Value_StructValue ) if ! ok { return errors . New ( " " ) } s . value = sv . StructValue return nil }
SetValue sets the value of the Struct
SetValue sets the value of the Struct